* Comments following not-really-affiliated keywords are becoming paragraphs
@ 2023-10-11 21:51 Tom Alexander
2023-10-12 11:26 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Tom Alexander @ 2023-10-11 21:51 UTC (permalink / raw)
To: emacs-orgmode
Emacs version: 29.1
Org-mode version: e1569918cc94253650781e83a09695739c93352f (latest in git)
Test document:
```
#+CAPTION: foo
# bar
```
This parses as a paragraph with the caption of foo and the body of "# bar" when it should parse as a regular keyword followed by a comment.
Relevant org-syntax[1] bit:
> a keyword with the same KEY as an affiliated keyword may occur so long as it is not immediately preceding a valid element that can be affiliated. For example, an instance of #+caption: hi followed by a blank line will be parsed as a keyword, not an affiliated keyword.
[1] https://orgmode.org/worg/org-syntax.html#Keywords
--
Tom Alexander
pgp: https://fizz.buzz/pgp.asc
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-16 18:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-11 21:51 Comments following not-really-affiliated keywords are becoming paragraphs Tom Alexander
2023-10-12 11:26 ` Ihor Radchenko
2023-10-16 18:06 ` Tom Alexander
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.