{"id":28766763,"url":"https://github.com/lunastev/late2htm","last_synced_at":"2026-04-27T18:32:26.661Z","repository":{"id":296851939,"uuid":"994760839","full_name":"LunaStev/late2htm","owner":"LunaStev","description":"A Rust library for converting LaTeX-formatted text into HTML with minimal styling.","archived":false,"fork":false,"pushed_at":"2025-06-02T12:54:12.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-17T12:04:20.418Z","etag":null,"topics":["arxiv","arxiv-latex","arxiv-latex-html","html","latex","latex-html","latextohtml","library","parser","rust","rust-library"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/late2htm","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LunaStev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":[],"ko_fi":"lunasev"}},"created_at":"2025-06-02T12:47:12.000Z","updated_at":"2025-06-02T13:01:37.000Z","dependencies_parsed_at":"2025-06-03T00:29:44.022Z","dependency_job_id":"fa3c35b7-50be-43b6-92e5-ab9d6831b78e","html_url":"https://github.com/LunaStev/late2htm","commit_stats":null,"previous_names":["lunastev/late2htm"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/LunaStev/late2htm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaStev%2Flate2htm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaStev%2Flate2htm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaStev%2Flate2htm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaStev%2Flate2htm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LunaStev","download_url":"https://codeload.github.com/LunaStev/late2htm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LunaStev%2Flate2htm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260355376,"owners_count":22996466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arxiv","arxiv-latex","arxiv-latex-html","html","latex","latex-html","latextohtml","library","parser","rust","rust-library"],"created_at":"2025-06-17T12:04:17.319Z","updated_at":"2026-04-27T18:32:26.656Z","avatar_url":"https://github.com/LunaStev.png","language":"Rust","funding_links":["https://ko-fi.com/lunasev"],"categories":[],"sub_categories":[],"readme":"# LaTeX to HTML\n\n**LaTeX to HTML** is a Rust library that converts LaTeX-formatted text into equivalent HTML.\n\nThis crate is designed to help developers transform LaTeX documents or fragments into structured HTML. Styling is intentionally kept minimal—developers are encouraged to apply custom CSS or integrate this library into a broader styling pipeline.\n\n---\n\n## ✨ Features\n\n* ✅ Lightweight LaTeX parsing and conversion to HTML\n* ✅ Supports the following LaTeX commands:\n\n  * Document structure: `\\section`, `\\subsection`, `\\subsubsection`, `\\paragraph`, `\\subparagraph`\n  * Text formatting: `\\textbf`, `\\textit`, `\\underline`, `\\emph`\n  * Extended commands: `\\textcolor`, `\\fontsize` *(planned)*\n  * Math mode: `$...$`, `\\[...\\]`, `\\begin{equation}` *(planned)*\n  * Lists: `itemize`, `enumerate`, `description` *(planned)*\n  * Tables: `tabular` *(planned)*\n  * Figures: `figure`, `\\includegraphics` *(planned)*\n  * References and citations: `\\label`, `\\ref`, `\\cite`, `\\footnote` *(planned)*\n  * Bibliography: `thebibliography`, `\\bibitem` *(planned)*\n  * Custom macros: `\\newcommand`, `\\renewcommand` *(planned)*\n  * Fallback handler for unknown LaTeX commands: `RawLatex`\n\n\u003e Note: Features marked *(planned)* are on the roadmap but not yet implemented.\n\n---\n\n## 🚀 Usage\n\n```rust\nuse late2htm::convert_latex_to_html;\n\nfn main() {\n    let latex_code = r\"\\\\section{Hello}This is \\\\textbf{bold}.\";\n    let html = convert_latex_to_html(latex_code);\n    println!(\"{}\", html);\n}\n```\n\n### Additional Test Example\n\n```rust\nuse late2htm::convert_latex_to_html;\n\nfn main() {\n    let input = r\"\\section{Main}\\subsection{Sub}\\subsubsection{SubSub}\\paragraph{Para}\\subparagraph{SubPara}Text \\textbf{bold} and \\textit{italic} and \\underline{under} and \\emph{emph}.\";\n    let html = convert_latex_to_html(input);\n    println!(\"{}\", html);\n}\n```\n\n---\n\n## 🎖️ Crate Structure\n\n* `parser` — Parses LaTeX code into an AST (`LatexNode` enum).\n* `htmlgen` — Converts AST into HTML.\n* `ast` — Defines the LaTeX abstract syntax tree (`LatexNode`).\n\n---\n\n## 🎯 Project Goals\n\n* 🧠 Simple and intuitive API for converting LaTeX to HTML\n* 🧩 Clean and semantic HTML output, ready for custom CSS\n* 🔌 Modular architecture for easy feature extension\n* 🔍 Fallback support for unknown LaTeX commands (raw output)\n\n---\n\n## 📜 License\n\nThis project is licensed under the **MPL-2.0 License**.\n\n---\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome!\nFeel free to fork and submit pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunastev%2Flate2htm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flunastev%2Flate2htm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flunastev%2Flate2htm/lists"}