Skip to main content

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>This is some inserted text. 👋</p>'

Project details


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.3.0.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file tiptapy-0.3.0.tar.gz.

File metadata

  • Download URL: tiptapy-0.3.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for tiptapy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9bc26e4e94df491a836d45d05e068249bfde55ca1419986c0b907c55387ca486
MD5 aff2621b8f2622648683a5e90cc85927
BLAKE2b-256 a7bc12e1e1aa16bfc33fb4712b0cc607fc53b938bcae02d1238576354f754ca1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page