On 03/01/2025 00:32, Ihor Radchenko wrote:
Max Nikulin writes:

On 31/12/2024 20:32, Ihor Radchenko wrote:
| $10 | foo | $\alpha$ |

pandoc result matches my expectation:

\$10 & foo & \(\alpha\) \\

How so?
I just tried

Sorry, I failed to express that the above example is handled perfectly by pandoc, while the following one I find unrealistic

printf '%s\n' '| =10+20 | 30 | =foo= |' | pandoc -f org -t latex

I can not imagine when this construct may emerge in real life. Parsing with single cell is questionable, is a kind of pitfall, but still may be considered as valid.

Perhaps the following on is better

    | ~0.001 | ~func3(x)~ |

but there are workarounds like

    | \(~0.001\) | ~func3(x)~ |

On the other hand current approach has already known pitfalls (omitting links to mailing list messages)

    Descriptive list
- goal :: src_haskell[:exports code]{monoidBSFold :: FilePath -> IO Counts}
    - term :: [[https://example.org][Bread :: Crumbs]]
    Verbatim inside emphasis
    - A _b =c_ d= e_ f
    Links (a workaround is to break emphasis on link borders)
    - /lorem [[https://ormode.org/?oops=1][ipsum]] dolor/
    - /lorem [[https://orgmode.org/,oops][ipsum]] dolor/
    The same with macro
    #+macro: Pathname =$1=
    /Open the file {{{Pathname(~/.bashrc)}}}/



Reply via email to