Skip to content

Commit e375bf3

Browse files
committed
Add 2 test cases
Added one test case to check that math blocks render correctly when preceeded by an alphanumerical character, and another one for when it is succeeded by an alphanumerical character. Signed-off-by: João Tiago <joao.leal.tintas@tecnico.ulisboa.pt>
1 parent 1edf43a commit e375bf3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/markup/markdown/markdown_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,14 @@ func TestMathBlock(t *testing.T) {
519519
`a$b $a a$b b$`,
520520
`<p>a<code class="language-math is-loading">b </code>a a<code class="language-math is-loading">b b</code></p>` + nl,
521521
},
522+
{
523+
"a$x$",
524+
`<p>a<code class="language-math is-loading">x</code></p>` + nl,
525+
},
526+
{
527+
"$x$a",
528+
`<p><code class="language-math is-loading">x</code>a</p>` + nl,
529+
},
522530
{
523531
"$$a$$",
524532
`<pre class="code-block is-loading"><code class="chroma language-math display">a</code></pre>` + nl,

0 commit comments

Comments
 (0)