1 个不稳定版本
0.1.0 | 2022 年 7 月 9 日 |
---|
#17 in #readme
在 2 个 crate 中使用 (via move-readme-generator)
13KB
318 行(不包括注释)
rustdoc-to-markdown
将 rustdoc 中的代码块转换为 markdown 格式
Rewrite code block start tags, changing rustdoc into equivalent in markdown
- "
", "
no_run", "ignore" and "
should_panic" are converted to "```rust" - markdown heading are indentend to be one level lower, so the crate name is at the top level
Code taken almost verbatim from https://github.com/livioribeiro/cargo-readme/blob/a7fd456433832f873cee890a9e67ece9929fc795/src/readme/process.rs.
许可:Apache-2.0
lib.rs
:
将 rustdoc 中的代码块转换为 markdown 格式
Rewrite code block start tags, changing rustdoc into equivalent in markdown
- "
", "
no_run", "ignore" and "
should_panic" are converted to "```rust" - markdown heading are indentend to be one level lower, so the crate name is at the top level
Code taken almost verbatim from https://github.com/livioribeiro/cargo-readme/blob/a7fd456433832f873cee890a9e67ece9929fc795/src/readme/process.rs.
依赖
~2.1–3MB
~53K SLoC