Skip to content

Unintentional equations in markdown #54

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions