github emdash-cms/emdash @emdash-cms/gutenberg-to-portable-text@1.5.0

Patch Changes

  • #4602 73158ea Thanks @dmythro! - Fixes classic-editor posts imported from WordPress arriving as one long paragraph. WordPress stores such posts with blank lines between paragraphs and adds the <p> tags only when it displays them, so the importer now starts a new paragraph at each blank line, as WordPress shows the post. A single line break stays a line break within its paragraph, including one right after bold, italic or linked text, where the words on either side used to run together.

  • #3846 0d5c65d Thanks @svermaak! - Fixes Classic-editor code blocks being imported as paragraph text. A <pre> element followed later in the post by a </p> was matched as a <p>, so the code block was dropped and its content ran into the surrounding paragraph. Imported code blocks now also keep the newlines that Classic content writes as <br>, and the language from <pre><code class="language-...">.

  • #4635 a499750 Thanks @dmythro! - Fixes classic-editor conversion slowing to seconds on HTML with tags that never close, such as a link or image tag with a long run of whitespace or repeated attributes, or many paragraph tags without end tags. Linked images now take their link from the link's own href attribute, not from href text elsewhere in the tag, and keep an apostrophe in a double-quoted link. Images keep alt text that contains >.

Don't miss a new emdash release

NewReleases is sending notifications on new releases.