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

Fix line breaks serialization in list items #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhouzi
Copy link
Contributor

@zhouzi zhouzi commented May 21, 2018

Right now, line breaks in list items are not properly serialized. The following document:

<ul>
	<li>Hello\nWorld</li>
</ul>

Is serialized to:

* Hello World

Which is not rendered as a line-break nor will it be parsed as such so the line break is lost. The way line-breaks are treated in list items is a bit complex so we'd need to add more tests and maybe tweak the one that's currenly added. The specification can be found here:

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.

1 participant