Markdown:有没有办法在markdown中指定原始文本?

时间:2016-01-05 09:56:27

标签: python 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

应该按原样出现,而不要让降价触摸它。

1 个答案:

答案 0 :(得分:2)

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

在github风味降价中,它通常使用```(3个反引号)
在python-markdown中,它就像Stack溢出一样,你在行前面放了4个空格。

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

\# comment

将显示# comment而不是单词&#34;评论&#34;作为标题。

相关问题