How to comment out some contents in .qmd files? #3330
Replies: 6 comments 32 replies
-
The HTML comment syntax is supported by Pandoc and should work in all output formats:
|
Beta Was this translation helpful? Give feedback.
-
A lesser-known trick is that you can have Yaml blocks within the document, and comment out everything inside with
Though, unfortunately, inline R code |
Beta Was this translation helpful? Give feedback.
-
(By the way, djot introduces comments that are not tied to HTML syntax – hopefully this will eventually make its way into pandoc as the preferred input format) |
Beta Was this translation helpful? Give feedback.
-
There is also a less-known comments trick1 which contrary to HTML style won't be displayed in the final document. []: # (This is a comment)
[]: # "And this is a comment"
[]: # 'Also this is a comment'
[//]: # (Yet another comment)
[comment]: # (Still another comment) Footnotes
|
Beta Was this translation helpful? Give feedback.
-
I couldn't find that in the Pandoc documentation. Apparently at one point a special comment syntax was discussed, (see jgm/pandoc#2552), but in the end only the |
Beta Was this translation helpful? Give feedback.
-
Just a note that @cderv proposed a solution that works well for me: using |
Beta Was this translation helpful? Give feedback.
-
If we use
#
, it makes word larger.Beta Was this translation helpful? Give feedback.
All reactions