Library that generates HTML output from JSON export of tiptap editor
Project description
tiptapy
Library that generates HTML output from JSON export of tiptap editor
import tiptapy
s = """
{
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "This is some inserted text. 👋"
}
]
}
]
}
"""
out = tiptapy.to_html(s)
print(out)
# '<p><span>This is some inserted text. 👋</span></p>'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tiptapy-0.1.0.tar.gz
(2.0 kB
view hashes)