Skip to content

Dollarmath math blocks inside blockquotes retains ">" in the equation. #125

Open
@livinNector

Description

@livinNector

Describe the bug

context

When rendering dollar math blocks inside block quotes, such as the example below.

> Given
>
> $$
> x^2 + y^2 = 9
> $$
>
> What is the radius of the circle?

bug

The ">" symbol is retained in the rendered equation as shown below.

<blockquote>
<p>Given</p>
<div class="math block">
&gt; x^2 + y^2 = 9
&gt;
</div>
<p>What is the radius of the circle?</p>
</blockquote>

expectation

The math block should not contain ">" (>) inside the equation.

<blockquote>
<p>Given</p>
<div class="math block">
x^2 + y^2 = 9
</div>
<p>What is the radius of the circle?</p>
</blockquote>

Reproduce the bug

  1. Using md.render with dollar math extension will reproduce this issue.

List your environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions