Skip to content

Commit d63013d

Browse files
committed
fix
Signed-off-by: Jerome Simeon <[email protected]>
1 parent e3d8e54 commit d63013d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/markdown-it-template/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const variable_inline = function (tokens, idx /*, options, env */) {
4848
};
4949

5050
const else_inline = function (tokens, idx /*, options, env */) {
51-
return `</span><span class="else">`;
51+
return `</span><span class="else_inline">`;
5252
};
5353

5454
const formula_inline = function (tokens, idx /*, options, env */) {

packages/markdown-it-template/test/data/all.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h1>Title</h1>
22
<p>Paragraph with a <span class="variable" name="seller">seller</span> and more text and<span name="forceMajeure" class="if_inline">, this is conditional,</span> with some <strong>marker</strong> <span class="formula"> 1+1 = 3 </span>. <span name="foo" separator=";" class="join_inline"><span class="variable" name="element">element</span></span></p>
3-
<p>Paragraph with a <span class="variable" name="seller">seller</span> and more text and<span name="forceMajeure" class="if_inline">, this is conditional,</span><span class="else"> and this is too,</span> with some <strong>marker</strong> <span class="formula"> 1+1 = 3 </span>. <span name="foo" class="join_inline"><span class="variable" name="element">element</span></span></p>
3+
<p>Paragraph with a <span class="variable" name="seller">seller</span> and more text and<span name="forceMajeure" class="if_inline">, this is conditional,</span><span class="else_inline"> and this is too,</span> with some <strong>marker</strong> <span class="formula"> 1+1 = 3 </span>. <span name="foo" class="join_inline"><span class="variable" name="element">element</span></span></p>
44
<p><span class="variable" name="buyer" format="FOO">buyer</span></p>
55
<div name="payment" src="ap://[email protected]#b4c966c2081303d017d3dde359bd8039ceb4a5dbacb6e6e09618e33a00d3f566" class="clause_block">
66
<p>BLABLABLABLA</p>
@@ -17,7 +17,7 @@ <h1>Title</h1>
1717
</ul>
1818
</div>
1919
<p>There is also a new <span name="name" class="optional_inline"> inline which can contain <this></span>.</p>
20-
<p>There is also a new <span name="name" class="optional_inline"> inline which can contain <this></span><span class="else">something else</span>.</p>
20+
<p>There is also a new <span name="name" class="optional_inline"> inline which can contain <this></span><span class="else_inline">something else</span>.</p>
2121
<p>This is a <a href="mylink">link with a <span class="variable" name="variable">variable</span> in it</a>.</p>
2222
<p>This is a <a href="mylink">link with a <this> in it</a>.</p>
2323
<p>This is a <a href="mylink">link with an <span name="name" class="if_inline"> in it</span></a>.</p>

0 commit comments

Comments
 (0)