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

don't add GFM line breaks inside non-paragraph content #299

Closed
chrisvasz opened this issue Dec 3, 2013 · 2 comments
Closed

don't add GFM line breaks inside non-paragraph content #299

chrisvasz opened this issue Dec 3, 2013 · 2 comments

Comments

@chrisvasz
Copy link

When rendering a document with GFM line breaks turned on, the following

# hello

<ul>
  <li>1</li>
  <li>2</li>
</ul>

# world

renders as

<h1 id="hello">hello</h1>
<ul><br>  <li>1</li><br>  <li>2</li><br></ul>

<h1 id="world">world</h1>

According to this line from the GFM help page (emphasis added):

GFM treats newlines in paragraph-like content as real line breaks, which is probably what you intended.

... the <br> tags should only be added in "paragraph-like content".

@Feder1co5oave
Copy link
Contributor

+1, breaks are quite tricky

@joshbruce
Copy link
Member

#985

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

3 participants