rushdown-footnote
rushdown-footnote is a simple footnote plugin for rushdown, a markdown parser. It allows you to easily add footnotes to your markdown documents.
Installation
Add dependency to your Cargo.toml:
[]
= "x.y.z"
rushdown-footnote 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
rushdown-footnote uses the following syntax for footnotes: PHP Markdown Extra
That's some text with a footnote.[^1]
That's some text with a named footnote.[^named]
Usage
Example
use Write;
use ;
use ;
let markdown_to_html = new_markdown_to_html;
let mut output = Stringnew;
let input = r#"
That's some text with a footnote.[^1]
[^1]: And that's the footnote.
"#;
match markdown_to_html
Options
| Option | Type | Default | Description |
|---|---|---|---|
id_prefix |
FootnoteIdPrefix |
FootnoteIdPrefix::None |
The prefix for footnote IDs. |
link_class |
String |
footnote-ref |
The class for footnote links. |
backlink_class |
String |
footnote-backref |
The class for footnote backlinks. |
backlink_html |
String |
↩︎ |
The HTML for footnote backlinks. |
Donation
BTC: 1NEDSyUmo4SMTDP83JJQSWi1MvQUGGNMZB
Github sponsors also welcome.
License
MIT
Author
Yusuke Inuzuka