[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The less ambiguous math delimiters in tables
From: |
Ihor Radchenko |
Subject: |
Re: The less ambiguous math delimiters in tables |
Date: |
Thu, 26 Dec 2024 13:51:08 +0000 |
Rudolf Adamkovič <rudolf@adamkovic.org> writes:
>> Maybe, but it is also much more complex in terms of parser.
>> Backtracking will introduce non-linear complexity to the parser,
>> degrading the performance significantly.
>
> Is that so? I thought it is all about simple precedence rules. In this
> case, once the parser finds the opening \(, it interprets everything as
> LaTeX, until it finds the closing \).
Yes, it is. Please check how Org parser works in
`org-element--parse-elements' and `org-element--parse-objects'.
>> We cannot change it at this point without breaking all the historical
>> documents + third-party parsers. That's why I am talking about
>> providing markup extension to address the issue rather than altering
>> the existing parser fundamentals.
>
> It would only break the documents that have one-sided \( or \) in the
> cells of the same column, no? And that is ... virtually never?
In a theoretical case if we agree to what you are suggesting, it should
not be just for tables. There are similar cases with other markup, like
*foo =* *= bar*
--
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>
- The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/24
- Re: The less ambiguous math delimiters in tables, Ihor Radchenko, 2024/12/24
- Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/25
- Re: The less ambiguous math delimiters in tables, Ihor Radchenko, 2024/12/25
- Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/25
- Re: The less ambiguous math delimiters in tables, Ihor Radchenko, 2024/12/26
- Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/26
- Re: The less ambiguous math delimiters in tables,
Ihor Radchenko <=
- Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/27
- Re: The less ambiguous math delimiters in tables, Ihor Radchenko, 2024/12/27
- Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/30
- Re: The less ambiguous math delimiters in tables, Ihor Radchenko, 2024/12/31
- Re: The less ambiguous math delimiters in tables, Leo Butler, 2024/12/27
- Re: The less ambiguous math delimiters in tables, Max Nikulin, 2024/12/28
- Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/30
- Re: The less ambiguous math delimiters in tables, Ihor Radchenko, 2024/12/31
- Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/31
- Re: The less ambiguous math delimiters in tables, Ihor Radchenko, 2024/12/31