Skip to content

fix: add newline rules to separate multiple images in markdown#1114

Open
Tomic-Riedel wants to merge 2 commits intoAppFlowy-IO:mainfrom
Tomic-Riedel:main
Open

fix: add newline rules to separate multiple images in markdown#1114
Tomic-Riedel wants to merge 2 commits intoAppFlowy-IO:mainfrom
Tomic-Riedel:main

Conversation

@Tomic-Riedel
Copy link

  • Added two new rules in DocumentMarkdownDecoder to handle formatting for multiple images:
    1. Ensures a double newline (\n\n) is added when a single newline separates two images.
    2. Ensures a double newline (\n\n) is added when no newline separates two images.
  • Added a test case to verify that multiple images on separate lines without blank lines are properly decoded into distinct nodes.
  • Added a test case to verify that multiple images on the same line (inline) are properly decoded into distinct nodes.

This pull request fixes #1113.

@CLAassistant
Copy link

CLAassistant commented Jun 7, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Markdown: 3 or more images without a line break in a row do not get parsed correctly

2 participants