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

Add literalBreaks support #598

Merged

Conversation

aidantwoods
Copy link
Collaborator

Line breaks will be converted to <br />

Closes #597

Line breaks will be converted to <br />
@aidantwoods aidantwoods added this to the 1.8.0 milestone Apr 5, 2018
@aidantwoods aidantwoods merged commit 9b7b734 into erusev:master Apr 6, 2018
@aidantwoods aidantwoods deleted the enhancement/set-literal-breaks branch April 6, 2018 14:06
@arondeparon
Copy link

Could this perhaps be merged to a beta branch as well? It's missing in 1.8.0-beta-5

@aidantwoods
Copy link
Collaborator Author

The original plan was to include it due to the required changes not being suited well to modification by an extension. I ended up making some other changes which instead ended up providing the tools to add this via an extension by preserving information about the number of line breaks encountered (#610), and providing a way to overload paragraph handling like other block types (#611).

This is discussed a little in #597 (comment), which also talks in response to some pitfalls associated with literal breaks (since line breaks in markdown have syntactic meaning—and this essentially turns that off in cases).

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.

2 participants