editorjs-html
editorjs-html copied to clipboard
It seems that forcing lowercase letters makes it impossible to have uppercase letters in customer tags
hello there,
I have create a function to handle checklist
as following:
function checkLisParser(block: CheckListBlock) {
const items = block.data.items;
const parsedItems = items.map(item => (
`<div class="flex">
<Checkbox checked=${item.checked ? true : false} />
<p>${item.text}</p>
</div>`
)).join('');
const html = `<div>${parsedItems}</div>`;
return html;
it works, however, the<Checkbox> has been parsed to checkbox. Thus, I cannot use my component which I have created.
Is there sth I have missed? Thanks