Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underline mark #90

Merged
merged 2 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.19.0
current_version = 0.20.0
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="tiptapy",
version="0.19.0",
version="0.20.0",
url="https://github.com/scrolltech/tiptapy",
description="Library that generates HTML output from JSON export of tiptap editor",
long_description=open("README.md").read(),
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
2 changes: 1 addition & 1 deletion tiptapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
extract_tag_attrs,
)

__version__ = "0.19.0"
__version__ = "0.20.0"

renderers: Dict = {}

Expand Down
Loading