table 内的 Markdown 评论
Markdown comment within table
我正在寻找一种方法来在 Markdown table(由 Slate 解析)中添加特定于不同行的注释。我不希望它们出现在从此 Markdown 文件生成的 HTML 中。
我还没有找到任何适用于此设置的注释语法。我试过了
[]: # (comment)
[]: # "comment"
[]: # 'comment'
[//]: # (comment)
[comment]: # (comment)
<!-- comment -->
以及它们的变体,无法使任何东西起作用。
你们中有人已经成功了吗?
我找到的解决方案是在相关行的 table 中添加一个额外的列,例如
Name | Description
--------- | -------
first item | description | comment
second item | description
因此,评论从未出现在生成的 HTML 中。
我不知道这是否是好的做法,也不知道它是如何table。
我正在寻找一种方法来在 Markdown table(由 Slate 解析)中添加特定于不同行的注释。我不希望它们出现在从此 Markdown 文件生成的 HTML 中。
我还没有找到任何适用于此设置的注释语法。我试过了
[]: # (comment)
[]: # "comment"
[]: # 'comment'
[//]: # (comment)
[comment]: # (comment)
<!-- comment -->
以及它们的变体,无法使任何东西起作用。
你们中有人已经成功了吗?
我找到的解决方案是在相关行的 table 中添加一个额外的列,例如
Name | Description
--------- | -------
first item | description | comment
second item | description
因此,评论从未出现在生成的 HTML 中。 我不知道这是否是好的做法,也不知道它是如何table。