markdown-it 0.6.1

Rust port of popular markdown-it.js library.
Documentation

Build #3540572 2026-06-10 23:00:46

# rustc version rustc 1.98.0-nightly (beae78130 2026-06-09)

# docs.rs version docsrs 0.0.0 (39849b9c22c419f6b690c8d2213455bc7426a6b8 2026-06-03 )

# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "84d5b010082cf40bf1d24ea4563a92ee7a349468c398a90d795f3192127e501e" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260609-1.98.0-nightly-beae78130\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: value assigned to `pos` is never read [INFO] [stderr] --> src/plugins/cmark/block/reference.rs:345:37 [INFO] [stderr] | [INFO] [stderr] 345 | Some(' ' | '\t') => pos += 1, [INFO] [stderr] | ^^^^^^^^ this value is reassigned later and never used [INFO] [stderr] ... [INFO] [stderr] 351 | pos = dest_end_pos; [INFO] [stderr] | ------------------ `pos` is overwritten here before the previous value is read [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/common/ruler.rs:83:17 [INFO] [stderr] | [INFO] [stderr] 83 | pub fn iter(&self) -> Iter<T> { [INFO] [stderr] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 83 | pub fn iter(&self) -> Iter<'_, T> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/common/utils.rs:94:26 [INFO] [stderr] | [INFO] [stderr] 94 | pub fn unescape_all(str: &str) -> Cow<str> { [INFO] [stderr] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 94 | pub fn unescape_all(str: &str) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/common/utils.rs:116:25 [INFO] [stderr] | [INFO] [stderr] 116 | pub fn escape_html(str: &str) -> Cow<str> { [INFO] [stderr] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 116 | pub fn escape_html(str: &str) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/common/utils.rs:231:51 [INFO] [stderr] | [INFO] [stderr] 231 | pub fn cut_right_whitespace_with_tabstops(source: &str, indent: i32) -> Cow<str> { [INFO] [stderr] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 231 | pub fn cut_right_whitespace_with_tabstops(source: &str, indent: i32) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/parser/block/mod.rs:115:35 [INFO] [stderr] | [INFO] [stderr] 115 | pub fn add_rule<T: BlockRule>(&mut self) -> RuleBuilder<RuleFns> { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 115 | pub fn add_rule<T: BlockRule>(&mut self) -> RuleBuilder<'_, RuleFns> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/parser/inline/mod.rs:139:36 [INFO] [stderr] | [INFO] [stderr] 139 | pub fn add_rule<T: InlineRule>(&mut self) -> RuleBuilder<RuleFns> { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 139 | pub fn add_rule<T: InlineRule>(&mut self) -> RuleBuilder<'_, RuleFns> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/parser/main.rs:61:34 [INFO] [stderr] | [INFO] [stderr] 61 | pub fn add_rule<T: CoreRule>(&mut self) -> RuleBuilder<RuleFn> { [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 61 | pub fn add_rule<T: CoreRule>(&mut self) -> RuleBuilder<'_, RuleFn> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/plugins/extra/smartquotes.rs:323:26 [INFO] [stderr] | [INFO] [stderr] 323 | fn all_text_tokens(root: &Node) -> Vec<FlatToken> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 323 | fn all_text_tokens(root: &Node) -> Vec<FlatToken<'_>> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `markdown-it` (lib) generated 9 warnings (run `cargo fix --lib -p markdown-it` to apply 8 suggestions) [INFO] [stderr] Scraping markdown-it v0.6.1 (/opt/rustwide/workdir) [INFO] [stderr] Documenting markdown-it v0.6.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/common/utils.rs:245:46 [INFO] [stderr] | [INFO] [stderr] 245 | /// See [cut_right_whitespace_with_tabstops](cut_right_whitespace_with_tabstops) [INFO] [stderr] | ---------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 245 - /// See [cut_right_whitespace_with_tabstops](cut_right_whitespace_with_tabstops) [INFO] [stderr] 245 + /// See [cut_right_whitespace_with_tabstops] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/parser/inline/builtin/skip_text.rs:52:5 [INFO] [stderr] | [INFO] [stderr] 52 | /// http://spec.commonmark.org/0.15/#ascii-punctuation-character [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] = note: `#[warn(rustdoc::bare_urls)]` on by default [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 52 | /// <http://spec.commonmark.org/0.15/#ascii-punctuation-character> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/plugins/extra/mod.rs:5:25 [INFO] [stderr] | [INFO] [stderr] 5 | //! - linkify (convert http://example.com to a link) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 5 | //! - linkify (convert <http://example.com> to a link) [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/plugins/html/utils/blocks.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | //! http://jgm.github.io/CommonMark/spec.html#html-blocks [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 2 | //! <http://jgm.github.io/CommonMark/spec.html#html-blocks> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: `markdown-it` (lib doc) generated 4 warnings (run `cargo fix --lib -p markdown-it` to apply 3 suggestions) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.32s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/markdown_it/index.html [INFO] running `Command { std: "docker" "inspect" "84d5b010082cf40bf1d24ea4563a92ee7a349468c398a90d795f3192127e501e", kill_on_drop: false }`