降价:有没有办法在降价中指定原始文本?

Markdown: Is there a way to specify raw text in markdown?

我正在使用 python 生成 markdown,有没有办法在 markdown 术语中指定 "raw" 字符串?

<-- magic markdown formatting to indicate not to format the following text
# This is a comment

--- end of text ---
<-- end of magic markdown formatting

应该按原样显示,完全不让 markdown 触及它。

如果要添加注释,可以使用代码语法。

在 github 风味降价中,它通常使用 ```(3 个反引号)
在 python-markdown 中,它就像 Stack overflow,在该行的前面放置 4 个空格。

如果你不想像代码一样格式化它,你可以像这样简单地转义降价语法:

\# comment

将显示 # comment 而不是单词 "comment" 作为标题。