github udecode/plate @platejs/markdown@49.0.12

latest releases: @platejs/dnd@49.2.22, @platejs/core@49.2.21, @platejs/slate@49.2.21...
2 months ago

Patch Changes

  • #4416 by @zbeyens

    • Fixed an issue where empty paragraphs were lost during markdown serialization and deserialization. Empty paragraphs are now preserved using zero-width spaces (\u200B) internally.

      // Before: Empty paragraphs would disappear
      const markdown = serializeMd(editor); // "Text\n\nMore text" → "Text\nMore text"
      
      // After: Empty paragraphs are preserved
      const markdown = serializeMd(editor); // "Text\n\nMore text" → "Text\n\nMore text"
    • Added preserveEmptyParagraphs option to control this behavior (defaults to true)

Don't miss a new plate release

NewReleases is sending notifications on new releases.