rushdown-definition-list
rushdown-definition-list is an extension for the rushdown that allows you to use definition lists in your markdown documents.
Installation
Add dependency to your Cargo.toml:
[]
= "x.y.z"
rushdown-definition-list can also be used in no_std environments. To enable this feature, add the following line to your Cargo.toml:
= { = "x.y.z", = false, = ["no-std"] }
Syntax
Please refer to the Definition List section of the PHP Markdown Extra documentation for the syntax of definition lists.
Apple
: Pomaceous fruit of plants of the genus Malus in
Orange
: The fruit of an evergreen tree of the genus Citrus.
Usage
Example
use Write;
use ;
use ;
let markdown_to_html = new_markdown_to_html;
let mut output = Stringnew;
let input = r#"
Apple
: Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.
Orange
: The fruit of an evergreen tree of the genus Citrus.
"#;
match markdown_to_html
definition_list_html_renderer_extension overrides a paragraph renderer.
If you want to use custom paragraph renderer, you can override it after calling definition_list_html_renderer_extension:
use Write;
use ;
use ;
let markdown_to_html = new_markdown_to_html;
let mut output = Stringnew;
let input = r#"
Apple
: Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.
Orange
: The fruit of an evergreen tree of the genus Citrus.
"#;
match markdown_to_html
Donation
BTC: 1NEDSyUmo4SMTDP83JJQSWi1MvQUGGNMZB
Github sponsors also welcome.
License
MIT
Author
Yusuke Inuzuka