rushdown-link-attribute
rushdown-link-attribute is an extension for the rushdown that allows you to add attributes to links and images in markdown.
Installation
Add dependency to your Cargo.toml:
[]
= "x.y.z"
rushdown-link-attribute 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
[aaa](https://example.com/aaa){.myclass}
You can add attributes to links and images by using curly braces {} after the link or image. Inside the curly braces, you can specify classes, ids, and other attributes.
Attribute syntax is same as the one used in rushdown.
Usage
Example
use Write;
use ;
use link_attribute_parser_extension;
let markdown_to_html = new_markdown_to_html;
let mut output = Stringnew;
let input = r#"
[aaa](https://example.com/aaa){.myclass}
"#;
match markdown_to_html
Donation
BTC: 1NEDSyUmo4SMTDP83JJQSWi1MvQUGGNMZB
Github sponsors also welcome.
License
MIT
Author
Yusuke Inuzuka