fix: escape/textify the contents of inline and block code (#954)
This commit is contained in:
parent
24d43699bb
commit
f9509f8987
3 changed files with 35 additions and 1 deletions
|
@ -40,6 +40,27 @@ exports[`content-rich > custom emoji 1`] = `
|
|||
|
||||
exports[`content-rich > empty 1`] = `""`;
|
||||
|
||||
exports[`content-rich > handles html within code blocks 1`] = `
|
||||
"<p>
|
||||
HTML block code:<br />
|
||||
<pre lang=\\"html\\">
|
||||
<span class="icon--noto icon--noto--1st-place-medal"></span>
|
||||
<span class="icon--noto icon--noto--2nd-place-medal-medal"></span></pre
|
||||
>
|
||||
</p>
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`content-rich > inline code with link 1`] = `
|
||||
"<p>
|
||||
Inline code with link:
|
||||
<code
|
||||
>https://api.iconify.design/noto.css?icons=1st-place-medal,2nd-place-medal</code
|
||||
>
|
||||
</p>
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`content-rich > link + mention 1`] = `
|
||||
"<p>
|
||||
Happy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue