We need your support to maintain this package. ๐ https://github.com/sponsors/ueberdosis
Takes HTML and outputs ProseMirror compatible JSON.
composer require ueberdosis/html-to-prosemirror
(new \HtmlToProseMirror\Renderer)->render('<p>Example Text</p>')
{
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Example Text"
}
]
}
]
}
Pull Requests are welcome.
- html-to-prosemirror-js by @enVolt
The MIT License (MIT). Please see License File for more information.