Skip to content

Commit

Permalink
test added for underline mark
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat Singla committed Jun 14, 2024
1 parent 588609d commit 15b333d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
History
=======

0.20.0 (2024-06-14)
-------------------
- Underline mark added.

0.19.0 (2024-06-06)
-------------------
- Render attrs for parent tag in block if present, only rendering `id` for now.
Expand Down
2 changes: 1 addition & 1 deletion tests/data/html/mark_tags.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<p>This is <strong>bold text</strong>, this is <em>italic text</em>, this is <strong><em>&lt;script&gt;alert(&#x27;hello&#x27;);&lt;/script&gt; italic and bold text</em></strong> and this has a <a href="https://foobar.withgoogle.com/" title="foo.bar" target="_blank" rel="noopener nofollow">link</a></p>
<p>This is <strong>bold text</strong><u>underline text</u>, this is <em>italic text</em>, this is <strong><em>&lt;script&gt;alert(&#x27;hello&#x27;);&lt;/script&gt; italic and bold text</em></strong> and this has a <a href="https://foobar.withgoogle.com/" title="foo.bar" target="_blank" rel="noopener nofollow">link</a></p>
9 changes: 9 additions & 0 deletions tests/data/json/mark_tags.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
],
"text": "bold text"
},
{
"type": "text",
"marks": [
{
"type": "underline"
}
],
"text": "underline text"
},
{
"type": "text",
"text": ", this is "
Expand Down

0 comments on commit 15b333d

Please sign in to comment.