editorjs-html icon indicating copy to clipboard operation
editorjs-html copied to clipboard

It seems that forcing lowercase letters makes it impossible to have uppercase letters in customer tags

Open sparklog opened this issue 7 months ago • 0 comments

 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

sparklog avatar Jul 26 '24 10:07 sparklog