Skip to content
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

Explicit soft breaks don't seem to be converted as <br> #607

Open
neaumusic opened this issue Sep 27, 2024 · 1 comment
Open

Explicit soft breaks don't seem to be converted as <br> #607

neaumusic opened this issue Sep 27, 2024 · 1 comment
Assignees

Comments

@neaumusic
Copy link

neaumusic commented Sep 27, 2024

I posted on StackOverflow here, and I think this may be a bug.

I've been searching for a while now, and I can't seem to find any one mentioning this issue.

We use TipTap / ProseMirror as a text editor, and prosemirror-markdown's default serializer/parser utilize backslash-preceded newlines (\\n) to denote soft breaks. It does seem that double space preceded newlines work as expected ( \n)

The issue is that the backslashes are rendered in the parsed jsx, even though I think (\\n) is valid and preferred since its visually clearer when viewing the plain text version of the markdown.

@neaumusic neaumusic changed the title Explicit hard breaks don't seem to be converted as <br> Explicit soft breaks don't seem to be converted as <br> Sep 27, 2024
@quantizor quantizor self-assigned this Nov 13, 2024
@quantizor
Copy link
Owner

Could you provide an example and how you would expect it to be rendered?

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

No branches or pull requests

2 participants