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

Single line breaks in list item generates a <br/> #431

Closed
johnsoftek opened this issue Apr 17, 2017 · 2 comments
Closed

Single line breaks in list item generates a <br/> #431

johnsoftek opened this issue Apr 17, 2017 · 2 comments

Comments

@johnsoftek
Copy link

List items should be allowed to continue over multiple source lines with the line breaks treated as "soft". The generated HTML should auto-flow the list item content without inserting <br/> for each line break.

Note that the treatment of line breaks is not consistent across all Markdown renderers. Notably, Github does ignore single line breaks as does this online Markdown editor: http://dillinger.io/ and Webstorm's built-in Markdown renderer.

John Gruber said back in 2004:

The implication of the “one or more consecutive lines of text” rule is that Markdown supports “hard-wrapped” text paragraphs. This differs significantly from most other text-to-HTML formatters (including Movable Type’s “Convert Line Breaks” option) which translate every line break character in a paragraph into a <br /> tag.

When you do want to insert a <br /> break tag using Markdown, you end a line with two or more spaces, then type return.

@vsch
Copy link
Owner

vsch commented Apr 17, 2017

@johnsoftek, you need to de-select Hard Wraps option in parser settings. Please see issue #91

@johnsoftek
Copy link
Author

@vsch That works. Thank you.

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