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

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

Open sparklog opened 4 months ago

sparklog commented 4 months ago

 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 has been parsed to checkbox. Thus, I cannot use my component which I have created.

Is there sth I have missed? Thanks