Crates.io | rst_renderer |
lib.rs | rst_renderer |
version | 0.4.0 |
source | src |
created_at | 2019-12-26 22:47:01.535155 |
updated_at | 2020-11-01 15:53:02.940688 |
description | a reStructuredText renderer |
homepage | https://github.com/flying-sheep/rust-rst |
repository | https://github.com/flying-sheep/rust-rst |
max_upload_size | |
id | 192554 |
size | 22,504 |
rst_renderer
Part of the rst
crate family.
This crate contains the HTML renderer (which supports most of what the parser supports),
as well as the broken XML and JSON renderers.
Suggestions and PRs welcome on how to get them right!
let document = Document::with_children(vec![...]); // or rst_parser::parse()
let stream = std::io::stdout();
let standalone = true; // wrap in <!doctype html><html></html>
render_html(document, stream, standalone);