A javascript library to parse editorjs clean data to html. It is adaptable and usable in all kind of projects.
The library now supports both normal as well as nested lists.
parser.parseStrict()
strictly checks for parser functions. It will return an error, if any of the parser function is missing. The parser.parse()
is still supported and works as well.2.+ parser.validate()
returns a list of missing parser functions, if any. In case all the functions are provided it returns an empty array.
embed
tag.The undefined image url tag is fixed. It supports both the previos and newer versions. data.file
and data.file.url
.
Fixed #24 with feature update 1.
Fixed #21, a different parser instace to be created with different parser functions.
There have been a few minor bug fixes, and other major changes.
Custom Error when a Parser Function for given Block Type does not exist The library will now give you more informative error in case your data contains a block for which a parser function is not available. The error message earlier was not at all descriptive of the underlying issue.
Full block data to the parser functions
In the earlier versions the parser functions only recieved data
field of the block, but in some cases or in the future versions of editorjs
there might be other fields that might be of use to you. Hence, the full data in the block is passed onto the parser functions to use them as you see fit.
Pararaph Support & Image Parser Fixed
Paragraphs are now supported by default.
Image parsing have been fixed.
View Docs: https://github.com/pavittarx/editorjs-html/