Expand description
Markdown renderer for Ox Content.
This crate provides a renderer that converts Markdown AST to HTML and other output formats.
§Example
use ox_content_allocator::Allocator;
use ox_content_parser::Parser;
use ox_content_renderer::HtmlRenderer;
let allocator = Allocator::new();
let source = "# Hello World\n\nThis is a paragraph.";
let parser = ox_content_parser::Parser::new(&allocator, source);
let document = parser.parse().unwrap();
let mut renderer = HtmlRenderer::new();
let html = renderer.render(&document);Structs§
- Html
Renderer - HTML renderer.
- Html
Renderer Options - HTML renderer options.
Enums§
- Code
Annotation Syntax - Render
Error - Render error.
Traits§
- Renderer
- Trait for rendering Markdown AST to various output formats.
Type Aliases§
- Render
Result - Result type for rendering operations.