Skip to content

v3.0.0

Choose a tag to compare

@miadabdi miadabdi released this 08 Sep 05:44
· 5 commits to main since this release
44a1343

Changed (breaking)

  • Paragraph output no longer pads the text with literal spaces:
    <p class="paragraph">text</p> instead of <p class="paragraph"> text </p>.
    Round-tripping parsed HTML back into the editor no longer grows paragraphs
    on each pass. Credit: @Eirmas
    (#8).

    Need the old spacing back? One-line custom parser:

    new edjsParser(undefined, {
        paragraph: (data, config) => `<p class="${config.paragraph.pClass}"> ${data.text} </p>`,
    });