Skip to content

Commit e574f3c

Browse files
committed
fix: unit test
1 parent 29655d3 commit e574f3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

__tests__/shared/utils/__snapshots__/markdown.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ Array [
12031203
A list item with a code block:
12041204
</p>
12051205
<code>
1206-
&lt;code goes here&gt;
1206+
&lt;code&gt;
12071207
12081208
</code>
12091209
</li>
@@ -1294,7 +1294,7 @@ end tell
12941294
ampersands and angle brackets. For example, this:
12951295
</p>,
12961296
<code>
1297-
&lt;div class="footer"&gt;
1297+
&lt;div&gt;
12981298
&copy; 2004 Foo Corporation
12991299
&lt;/div&gt;
13001300

src/shared/utils/markdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function renderToken(tokens, index, md) {
208208
return renderTokens(token.children, 0, md);
209209
/* eslint-enable no-use-before-define */
210210
case 'text':
211-
return token.content;
211+
return sanitizeContent(token.content);
212212
case 'fence':
213213
return Highlighter({
214214
codeString: token.content,

0 commit comments

Comments
 (0)