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

backtick ` to escape Latex not working #919

Open
rleyvasal opened this issue May 12, 2022 · 2 comments
Open

backtick ` to escape Latex not working #919

rleyvasal opened this issue May 12, 2022 · 2 comments
Labels

Comments

@rleyvasal
Copy link

The use of backtick to escape Latex code is not working in markdown

Code to replicate

-   enclosed in `$ $`  such as  `$\sigma$` get $\sigma$

Current output

output latex

Expected output

expected latex

@rleyvasal rleyvasal changed the title backtick ` to escape Latex not working backtick ~ ` to escape Latex not working May 12, 2022
@rleyvasal rleyvasal changed the title backtick ~ ` to escape Latex not working backtick ` to escape Latex not working May 12, 2022
@rleyvasal rleyvasal changed the title backtick ` to escape Latex not working backtick ~` to escape Latex not working May 12, 2022
@rleyvasal rleyvasal changed the title backtick ~` to escape Latex not working backtick ````` to escape Latex not working May 12, 2022
@rleyvasal rleyvasal changed the title backtick ````` to escape Latex not working backtick ` to escape Latex not working May 12, 2022
@evilz
Copy link
Owner

evilz commented May 18, 2022

Not sure how to fix this 🤨.
Latex is parsing after all even escape is not working.

@evilz evilz added the bug label May 18, 2022
@rleyvasal
Copy link
Author

rleyvasal commented May 25, 2022

My guess is that the problem lies in how Math uses backtick to render formulas. The $ can be escaped with <span>$</span> shown in following code. Although it is its a lot of typing if trying to show how latex is used with examples - hopefully there is an easier way to do it .

This works for inline code

<span>$</span>\sigma<span>$</span>

Or \backlash and \text as below

$`$\backslash \text{sigma}$`$

This also works, but not inline

```  
$\sigma$   
```

Modifying Latex above to make it inline, it does not work

``` $\sigma$ ```

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

No branches or pull requests

2 participants