From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: The less ambiguous math delimiters in tables
Date: Sat, 28 Dec 2024 23:39:28 +0700 [thread overview]
Message-ID: <vkp9k2$ev2$1@ciao.gmane.io> (raw)
In-Reply-To: <m2pllf3aum.fsf@adamkovic.org>
On 26/12/2024 00:56, Rudolf Adamkovič wrote:
> I thought that, with the noisy \(...\) delimiters,
GitHub users faced ambiguities with $...$ delimiters as well, so do not
be upset by "noisy" syntax. Alternatives may be painful as well.
<https://nschloe.github.io/2022/06/27/math-on-github-follow-up.html#-vs-dollar-bugs>
I have no idea how expensive will be a parser that handles more cases
with balanced delimiters. E.g. pandoc uses another approach:
printf '%s\n' '| \(|x|\) | \(|x|\) |' | pandoc -f org -t latex
\begin{longtable}[]{@{}ll@{}}
\toprule
\endhead
\(|x|\) & \(|x|\) \\
\bottomrule
\end{longtable}
Likely you would be unhappy if some of you document were exported in a
different way due to change of parsing rules. On the other hand, I do
not have a collection of pitfalls for pandoc.
An extensive test suite is necessary to consider alternatives for
parsing rules.
Current logic may be roughly describes as the following. When Org
recognizes start of some element, it tries to find its end, mostly
neglecting opening markers. A fragment is parsed for nested elements
*after* boundaries of the parent element are determined.
The parser ignores latex fragments when it splits table row into cells.
It ignores link markers when it tries to find where emphasis terminates,
etc.
next prev parent reply other threads:[~2024-12-28 16:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-24 9:20 The less ambiguous math delimiters in tables Rudolf Adamkovič
2024-12-24 9:25 ` Ihor Radchenko
2024-12-25 17:56 ` Rudolf Adamkovič
2024-12-25 18:05 ` Ihor Radchenko
2024-12-25 20:14 ` Rudolf Adamkovič
2024-12-26 9:17 ` Ihor Radchenko
2024-12-26 13:31 ` Rudolf Adamkovič
2024-12-26 13:51 ` Ihor Radchenko
2024-12-27 13:23 ` Rudolf Adamkovič
2024-12-27 13:35 ` Ihor Radchenko
2024-12-27 17:17 ` Leo Butler
2024-12-28 16:39 ` Max Nikulin [this message]
2024-12-24 9:50 ` Rudolf Adamkovič
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='vkp9k2$ev2$1@ciao.gmane.io' \
--to=manikulin@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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).