Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种方法来添加特定于 Markdown 表中不同行的评论(由Slate解析)。我不希望它们出现在从此 Markdown 文件生成的 HTML 中。
我还没有找到任何适用于此设置的注释语法。我试过
[]: # (comment) []: # "comment" []: # 'comment' [//]: # (comment) [comment]: # (comment) <!-- comment -->
以及它们的变体,无法正常工作。
你们中有人已经成功了吗?
我找到的解决方案是在相关行的表中添加一个额外的列,例如
Name | Description --------- | ------- first item | description | comment second item | description
这样,评论就不会出现在生成的 HTML 中。我不知道这是否是好的做法以及它的便携性。