UNPKG
@blade47/editorjs-html
Version:
latest (4.0.8)
4.0.8
4.0.7
4.0.6
A utility to parse editorjs clean data to HTML.
@blade47/editorjs-html
/
src
/
parsers
/
header.ts
6 lines
(4 loc)
•
171 B
text/typescript
View Raw
1
2
3
4
5
6
import
{
OutputBlockData
}
from
"@editorjs/editorjs"
;
export
const
header
= (
{ data }: OutputBlockData
) => {
return
`<h
${data.level}
>
${data.text}
</h
${data.level}
>`
; };