HTML Generator (html-generator)
A comprehensive Rust library for transforming Markdown into optimised, accessible HTML.
• Website • Documentation • Report Bug • Request Feature • Contributing Guidelines
Overview 🎯
The html-generator library simplifies the process of transforming Markdown into SEO-optimised, accessible HTML. This library provides tools for processing front matter, generating semantic headers, validating accessibility, and optimising performance for modern web applications.
Features ✨
Markdown to HTML Conversion
- Standard and Custom Extensions: Supports GFM and extensible custom syntax.
- Front Matter Parsing: Processes YAML/TOML/JSON front matter seamlessly.
- Header Customisation: Generates semantic headers with custom IDs and classes.
SEO and Accessibility
- SEO Utilities: Automatically generates meta tags and JSON-LD structured data.
- Accessibility Enhancements: Validates against WCAG standards and supports ARIA attributes.
- Semantic HTML: Ensures well-structured, readable markup.
Performance Optimisations
- Asynchronous Processing: Handles large documents efficiently with async support.
- HTML Minification: Reduces file sizes while maintaining functionality.
- Lightweight: Optimised for minimal memory usage and fast execution.
Developer-Friendly
- Configurable API: Extensively configurable options for flexible use cases.
- Detailed Errors: Comprehensive error types for easier debugging.
- Rich Documentation: Includes examples and detailed usage guides.
Installation 🚀
Add the following to your Cargo.toml:
[]
= "0.0.2"
Usage 💻
Basic Example
use ;
Advanced Example
use ;
async
Examples 💡
Run examples from the repository:
Documentation 📚
- API Documentation: Detailed function and struct definitions.
- Example Code: Practical, real-world use cases.
Contributing 🤝
We welcome contributions of all kinds! Please read our Contributing Guidelines for instructions on:
- Reporting issues
- Requesting features
- Submitting code
License 📜
This project is licensed under either of the following at your choice:
Acknowledgements 🙏
Heartfelt thanks to all contributors who have supported the development of html-generator.