Repository navigation
v3.0.0
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>`, });