How to include ASCII art/diagrams in Rust source-code comment documentation?

匿名 (未验证) 提交于 2019-12-03 01:03:01

问题:

How should Markdown be used with rustdoc to include diagrams or ASCII art?

From reading the manual, triple back-ticks can be used for code-snippets. How do I include literal, non-formatted text?

(Something like Doxygen's <pre>...</pre>)

回答1:

You use triple graves

```text like this ```

Note the text. This tells rustdoc to not syntax highlight what's inside; the default is to think it's Rust code.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!