[英]How do I add a trailing # (hash) to a header in GitHub flavored markdown?
[英]How do I add inline comments in Github Flavored Markdown?
我正在尝试创建一个带有内联评论的要点。 我在这里阅读了一个解决方案,它适用于在它自己的行上发表评论(如图所示); 但是,它似乎不适用于内联评论。 有没有办法在 github 风味 markdown 中获得内联评论?
- [x] some item
- [ ] another item with meta info [//]: # (attempt at meta info as inline comment)
[//]: # (This may be the most platform independent comment)
[//]: # (https://stackoverflow.com/questions/4823468/comments-in-markdown)
你也可以这样做
<!--- Comments are Fun --->
请记住,markdown只是编写HTML内容的一种更简单的方法。 (注意三重破折号)
更仔细地查看此解决方案可能的内联注释解决方法:
- [x] some item
- [ ] another item with meta info [//]: # (attempt at meta info as inline comment)
- [ ] using @ig0774's recomendation [](with an inline comment hidden inside an empty link)
[//]: # (This may be the most platform independent comment)
[//]: # (https://stackoverflow.com/questions/4823468/comments-in-markdown)
[](and another comment down here too using the empty link method)
我被这件事搞砸了<?put anything &%#$ here?>
,这似乎是一个相当有力的评论。
它似乎也适用于 stackoverflow:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.