Skip to content

Fix line breaks serialization in list items - #111

Open
zhouzi wants to merge 1 commit into
masterfrom
fix/list-item-line-breaks
Open

Fix line breaks serialization in list items#111
zhouzi wants to merge 1 commit into
masterfrom
fix/list-item-line-breaks

Conversation

@zhouzi

@zhouzi zhouzi commented May 21, 2018

Copy link
Copy Markdown

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