Skip to content

Support hard line breaks to start a new paragraph #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 11, 2025

Conversation

akoso
Copy link
Contributor

@akoso akoso commented Jun 11, 2025

Adds support to break up text content that contains 2 spaces followed by \n into separate paragraphs.
Should fix #49

Using this input:

You can _italicize_ or **bold** text.  \nThis is the second line of text.\nAnd this is in the same line

Before:
image

After:
image

akoso added 2 commits June 11, 2025 18:51
This update modifies the paragraph parsing logic to correctly split paragraphs on hard line breaks, improving the handling of markdown input. Additionally, new tests have been added to ensure the functionality works as expected.
@EndBug EndBug merged commit 2a0dbbf into tryfabric:master Jun 11, 2025
3 checks passed
@EndBug
Copy link
Member

EndBug commented Jun 11, 2025

LGTM! Thanks for the contribution!

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.

markdownToRichText ignores \n
2 participants