pavittarx / editorjs-html

A javascript library to parse editorjs clean data to html. It is adaptable and usable in all kind of projects.
https://runkit.com/pavittarx/editorjs-html-example
MIT License
331 stars 61 forks source link

Heading permalink #33

Closed BenjaminHoegh closed 2 years ago

BenjaminHoegh commented 3 years ago

Is there a way in the current version of editorjs-html to have it make heading permalinks?

pavittarx commented 2 years ago

@BenjaminHoegh you can provide a custom parser function, and structure headings as per your needs.

https://github.com/pavittarx/editorjs-html#extend-for-custom-blocks

Note: the key passed to edjsHTML is the block type you want to provide the parser function or override.