Mayer Goldberg <[email protected]> writes: > I believe I have found a parsing bug in Org-mode (version 9.6.15). > > According to the Org manual (“Export Settings”), regions surrounded by > #+BEGIN_COMMENT … #+END_COMMENT should not be exported. > However, when a top-level headline (* HEADLINE) appears inside such a block, > the headline is exported as if it were outside the block.
That's actually expected. Headlines are context-free, so that are interpreted the same regardless where they appear. > Workaround: > Prepending a comma (Org’s escaping mechanism) to the headline: > > #+begin_comment > ,* This is not exported > #+end_comment This is how Org syntax is, not a workaround. I added a clarification to the manual. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=4fed5f96a Fixed. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
