-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Interpret newlines as line breaks when converting Markdown to HTML #74
Milestone
Comments
The |
ulyssa
changed the title
Interpret a newline as a line break when converting Markdown to HTML
Interpret newlines as line breaks when converting Markdown to HTML
Apr 6, 2023
ulyssa
added a commit
that referenced
this issue
Apr 6, 2023
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When messages are typed in Element, it has a special case for interpreting newlines typed in the bar as
<br/>
tags instead of as a continuation of the current paragraph, which is the typical Markdown behaviour. This is more friendly towards the usual expectations in a chat client, where people usually type their paragraphs on one continuous line that wraps, instead of paragraphs that are split across multiple lines so that each one fits within a column limit.iamb is currently using the
markdown
feature of theruma
crate to take care of converting Markdown to a formatted message, which uses thepulldown_cmark
crate. The crate supports several parser options that can be used to change the default behaviour. None of them currently support this behaviour, but it might be possible to either add a new option to the crate, or to massage the input before it's handed over.The text was updated successfully, but these errors were encountered: