markdown-it 0.6.1

Rust port of popular markdown-it.js library.
Documentation
Build #2693044 2025-11-28 10:46:46
# rustc version
rustc 1.93.0-nightly (c86564c41 2025-11-27)# docs.rs version
docsrs 0.6.0 (6d5049f1 2025-11-27 )# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/markdown-it-0.6.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/markdown-it-0.6.1/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20251127-1.93.0-nightly-c86564c41\", \"--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: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 8c7b58e2a3a639fb24d32412c671d107a1a523854e792d47829069bb6a767eef
[INFO] running `Command { std: "docker" "start" "-a" "8c7b58e2a3a639fb24d32412c671d107a1a523854e792d47829069bb6a767eef", 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]     |                                     ^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[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.73s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/markdown_it/index.html
[INFO] running `Command { std: "docker" "inspect" "8c7b58e2a3a639fb24d32412c671d107a1a523854e792d47829069bb6a767eef", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8c7b58e2a3a639fb24d32412c671d107a1a523854e792d47829069bb6a767eef", kill_on_drop: false }`
[INFO] [stdout] 8c7b58e2a3a639fb24d32412c671d107a1a523854e792d47829069bb6a767eef