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

Unintentional equations in markdown #54

Open
ghost opened this issue Apr 2, 2022 · 0 comments
Open

Unintentional equations in markdown #54

ghost opened this issue Apr 2, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 2, 2022

2 $s between backticks in markdown on the same line results in an equation, which isn't really desired between backticks in markdown.

@s Unintentional equation

`$(FOO)` and `$(BAR)` are examples.

Results in:

...
<a name="1:1"><div class="section"><h4>1. Unintentional equation</h4></a>
<p><code>&lt;span class="math"&gt;(FOO)</code> and <code>&lt;/span&gt;(BAR)</code> are examples.
</p>
...

Where the <span/>s have been trapped inside <code/>s & are shown in the rendered HTML page like so:

1. Unintentional equation

<span class="math">(FOO) and </span>(BAR) are examples.

Escaping the use of $ does serve as a workaround, but needing escape sequences inside inline code spans in markdown is counter intuitive and not desired.

Would be ideal if $s inside matched backticks didn't indicate equations. Would also be fine for my use case if there was a way to turn off the equation processing too.

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

0 participants