Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular brackets incorrectly escaped in embedded Latex #162

Open
jforberg opened this issue Sep 8, 2023 · 1 comment
Open

Angular brackets incorrectly escaped in embedded Latex #162

jforberg opened this issue Sep 8, 2023 · 1 comment

Comments

@jforberg
Copy link

jforberg commented Sep 8, 2023

Obsidian allows us to embed Latex formulae in our markdown.

Some *text* blah, also $x < y$

Obsidian-export incorrectly escapes the angular bracket between the $$ so the output document will be

Some *text* blah, also $x \< y$

But \< is not a Latex command, so this will fail when it is processed later by some Latex-aware program.

$-segments should probably be copied directly into the output, without attempting to interpret them as markdown code.

@jforberg jforberg changed the title Angular brackets incorrectly escaped also in embedded Latex Angular brackets incorrectly escaped in embedded Latex Sep 8, 2023
@wansook0316
Copy link

wansook0316 commented Oct 23, 2024

I have the same problem.

\phi

it converts to something like this

\\phi

This also works for the “{” character.

In my opinion, if you have an inline, newline latex representation, you shouldn't touch the internal logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants