From: Laith Bahodi <laithbahodi@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Parsing nested markup objects
Date: Thu, 8 Jun 2023 04:21:48 -0400 [thread overview]
Message-ID: <CABhQr0TRuGeJMn+G5xzqJuX=UhvwiBHJr1+P8qqDRhA8KUpPfQ@mail.gmail.com> (raw)
Hi! I'm working on a parser for org and I noticed something about
nested markup in the syntax spec: markup starting at the limit of
another object seems like it shouldn't be interpreted as markup. The
spec says that the precondition characters are:
PRE MARKER ...
PRE
Either a whitespace character, -, (, {, ', ", or the beginning of a line.
https://orgmode.org/worg/dev/org-syntax-edited.html#Emphasis_Markers
With links, since `[` isn't in that list, the spec seems to imply the
following wouldn't contain an italic block, but it does:
[[https://example.com][/according to the spec, this shouldn't be marked up/]]
same goes for */abc/* (since `*` isn't in the set defined by PRE)
I understand why it works like this since it's pretty convenient, but
I feel like the details about this interaction should probably be
clarified since it's not quite obvious from the spec (unless I missed
something!).
Also, how are these objects intended to be handled? I couldn't
pinpoint where in `org-element` this is approached.
next reply other threads:[~2023-06-08 8:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-08 8:21 Laith Bahodi [this message]
2023-06-08 11:11 ` Parsing nested markup objects Ihor Radchenko
2023-06-08 11:12 ` Ihor Radchenko
2023-06-23 12:16 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABhQr0TRuGeJMn+G5xzqJuX=UhvwiBHJr1+P8qqDRhA8KUpPfQ@mail.gmail.com' \
--to=laithbahodi@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.