How to comment out some contents in .qmd files? #3330
Replies: 8 comments 34 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.
-
Sorry for bumping an old thread, but since this seems to be an ongoing discussion (to at least some degree), maybe a glance over to org-mode can meaningfully inform future design decisions. I use and love both, Quarto and org-mode, but I think of the latter as the more flexible tool when it comes to the pre-publication stage of a document, where I am still developing my ideas (as opposed to preparing them for publication). Why is this relevant for this discussion? Because I can boil it down to three specific org-mode features:
Fair enough, Quarto is a publishing system, and not a task manager in the way that org-mode is. But boy, would I party if Quarto was to adopt |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If we use
#
, it makes word larger.Beta Was this translation helpful? Give feedback.
All reactions