简体   繁体   English

Markdown中的注释将被HTML转换器忽略

[英]Comments in Markdown that will be ignored by HTML converter

I use Markdown for creation and editing of Web Content. 我使用Markdown来创建和编辑Web Content。 I need to keep in my Markdown texts some comments/notes that must NOT be a part of generated HTML, even not as HTML comments. 我需要在Markdown文本中保留一些注释/注释,这些注释/注释不能成为生成的HTML的一部分,甚至不能作为HTML注释。 Is there any way for Markdown (or any of its flavors) to have this type of comments "invisible" for converter? Markdown(或它的任何一种口味)是否有办法使转换器的这种类型的注释“不可见”?

It's not straight forward but you may want to have a look at the link below. 这不是直截了当的,但您可能想看看下面的链接。 You may want to use either HTML comment syntax or 'hack' the link syntax to achieve your goal. 您可能需要使用HTML注释语法或“修改”链接语法来实现您的目标。

Comments in Markdown Markdown中的评论

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM