| Crates.io | html2typst |
| lib.rs | html2typst |
| version | 0.0.1 |
| created_at | 2025-03-20 21:42:11.713213+00 |
| updated_at | 2025-03-20 21:42:11.713213+00 |
| description | Convert HTML files to Typst syntax |
| homepage | |
| repository | https://github.com/adriandelgado/html2typst |
| max_upload_size | |
| id | 1599801 |
| size | 33,610 |
A library for converting HTML documents into Typst markup.
This library is currently in alpha. Features are incomplete, and the API may change in future versions. Use with caution and report any issues you encounter.
<p>, <b>, <i>, <h1>–<h6>).use html2typst::parse_html;
let html = "<h1>Hello, World!</h1><p>This is a test.</p>";
let typst = parse_html(html);
assert_eq!(typst, "= Hello, World!\nThis is a test.");
Contributions are welcome! If you find a bug or want to add a feature, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.