Convert HTML to Editor.js JSON format.
Project description
HTML to Editor.js JSON
Convert HTML to Editor.js JSON format
Installation
pip install html_to_editorjs
Usage
from html_to_editorjs import parse
json = parse("""
<h1>My Page</h1>
<h2>Introduction</h2>
<p>Some <em>content</em> that is pretty <strong>interesting</strong></p>
<p>Don't forget to <a href="https://example.com">follow me!</a></p>
<h2>Illustration</h2>
<img src="https://example.com/image.png" alt="image"/>
""")
Supported blocks
- Paragraph (p)
- Header (h1, h2, h3, h4, h5)
- List (ul, ol)
- Image (img, figure, figcaption)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file html-to-editorjs-0.0.1.tar.gz.
File metadata
- Download URL: html-to-editorjs-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9a0c76299bece733b0b510d8cdecbd3a29dc2df61f2553c02b31915a8851d2f
|
|
| MD5 |
cbdae80702a6c7be25bd7ff4490c12c6
|
|
| BLAKE2b-256 |
99843f5db0f41f1f066030a4a420afb2f9524f381c3620cd45bca3e000eacfaf
|
File details
Details for the file html_to_editorjs-0.0.1-py3-none-any.whl.
File metadata
- Download URL: html_to_editorjs-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cebf57d54217c40eaf39e1f22cfda615597aae3d806b3cfaa8e3c748e5f425c
|
|
| MD5 |
198ae18a788df4d8b3cbcb9df3d7a4b6
|
|
| BLAKE2b-256 |
b86fa42ddf5383034aff28a97ae4cd77ab7308159ff52e6f5fa11c38ddebb229
|