寫代碼你可以注釋道媚,不需要處理的代碼就 comment out陪捷。
寫 Markdown 呢回窘?一篇文章寫出來(lái),總是有點(diǎn)草稿的市袖,每次都忍痛割愛(ài)刪掉啡直,可能下次還要再敲一遍。
所以我一般都寫到某個(gè)特定的 class 的 div 里苍碟,再用 CSS 把它們隱藏酒觅。
可惜這種方法既不優(yōu)雅也不通用。
機(jī)智如我如果一下就 bing 到了:syntax - Comments in Markdown - Stack Overflow微峰。
你可以用下面這些:
[comment]: <> (This is a comment, it will not be included)
[comment]: <> (in the output file unless you use it in)
[comment]: <> (a reference style link.)
[//]: <> (This is also a comment.)
[//]: # (This may be the most platform independent comment)
我決定以后用:
[^_^]:
commentted-out contents
should be shift to right by four spaces (`>>`).
親測(cè)可用(Pandoc舷丹、GitHub、簡(jiǎn)書(shū)蜓肆、作業(yè)部落)颜凯。十分完美,除了這個(gè) warning:
pandoc: Duplicate note reference `^' "source" (line 85, column 1)
如果你想測(cè)試一下你的 Markdown 能不能這么用仗扬,這是一點(diǎn)測(cè)試的文字:
a
[^_^]:
b
c
d
顯示的 a c d 應(yīng)當(dāng)間隔一樣長(zhǎng)症概。如下:
a
c
d
@delogn 的評(píng)論:
[^_^]:
1
[>_<]:
2
[>_>]:
3
都可以用啊,不錯(cuò)不錯(cuò)早芭!以后吐槽和心情都可以寫在注釋里了彼城!
贊贊贊!