1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-28 19:01:08 +00:00

Add support for markdown footnotes (ref #76)

This commit is contained in:
Felix Ableitner 2024-10-23 11:32:26 +02:00
parent e7d480098f
commit 71af03c0f6
3 changed files with 12 additions and 0 deletions

10
Cargo.lock generated
View file

@ -1746,6 +1746,7 @@ dependencies = [
"log",
"markdown-it",
"markdown-it-block-spoiler",
"markdown-it-footnote",
"markdown-it-heading-anchors",
"once_cell",
"pretty_assertions",
@ -2315,6 +2316,15 @@ dependencies = [
"markdown-it",
]
[[package]]
name = "markdown-it-footnote"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6679ab967fbc45b290b25fb477af7556bf6825feec208a970585e6bb9aae3be"
dependencies = [
"markdown-it",
]
[[package]]
name = "markdown-it-heading-anchors"
version = "0.3.0"

View file

@ -83,6 +83,7 @@ katex = { version = "0.4", default-features = false }
include_dir = "0.7.4"
markdown-it-block-spoiler = "1.0.0"
markdown-it-heading-anchors = "0.3.0"
markdown-it-footnote = "0.2.0"
[dev-dependencies]
pretty_assertions = "1.4.1"

View file

@ -30,6 +30,7 @@ fn markdown_parser() -> MarkdownIt {
let mut parser = MarkdownIt::new();
markdown_it::plugins::cmark::add(&mut parser);
markdown_it_heading_anchors::add(&mut parser);
markdown_it_footnote::add(&mut parser);
markdown_it::plugins::extra::strikethrough::add(&mut parser);
markdown_it::plugins::extra::tables::add(&mut parser);
markdown_it::plugins::extra::typographer::add(&mut parser);