Hacker News new | ask | show | jobs
by scottmessinger 3568 days ago
In the comments, you mention how Quill is extensible. Does Quill's extensibility enable the creation of a hierarchical level that resembles an HTML <section> element? From what I can tell, Quill/Parchment divides documents into block blots, inline blots, and embedded blots[1]. If I wanted to create a group of block blots, could that be done with Quill? In HTML, this would look something like:

    <section>
      <h1>First Section</h1>
      <p>Text...</p>
      <p>Text...</p>
    </section>

    <section>
      <h1>Second Section</h1>
      <p>Text...</p>
      <p>Text...</p>
    </section>

[1] https://github.com/quilljs/parchment#block-blot
1 comments

You can use a container blot, which is how lists are implemented. A container blot represents <ol> and a block blot represents <li>.