【问题标题】:How to include ASCII art/diagrams in Rust source-code comment documentation?如何在 Rust 源代码注释文档中包含 ASCII 艺术/图表?
【发布时间】:2016-11-12 00:09:52
【问题描述】:

应该如何将 Markdown 与 rustdoc 一起使用以包含图表或 ASCII 艺术?

通过阅读手册,三个反引号可用于 code-sn-ps。 如何包含文字、非格式化文本?

(类似Doxygen's<pre>...</pre>

【问题讨论】:

    标签: rustdoc


    【解决方案1】:

    你使用三重坟墓

    ```text
    like this
    ```
    

    注意text。这告诉rustdoc 不要语法高亮里面的内容;默认认为是 Rust 代码。

    【讨论】:

      猜你喜欢
      • 2012-03-10
      • 2016-02-11
      • 2013-06-27
      • 1970-01-01
      • 1970-01-01
      • 2011-06-01
      • 1970-01-01
      • 2021-02-05
      • 1970-01-01
      相关资源
      最近更新 更多