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

Sundown requires a blank line before a block quote #92

Open
finsprings opened this issue Feb 24, 2012 · 1 comment
Open

Sundown requires a blank line before a block quote #92

finsprings opened this issue Feb 24, 2012 · 1 comment

Comments

@finsprings
Copy link

The following two paragraphs both have a block quote after them, but the first has no blank line before the block quote. Neither Markdown.pl nor TextMate care but Sundown does not parse the first block quote as a block quote: it treats it as part of the paragraph.

Is there a reason that Sundown wants the blank line?

Input Text

A paragraph with a blockquote afterwards with no gap.
> Ohai I am a blockquote.

A paragraph with a blockquote afterwards with a one-line gap.

> Ohai I am another blockquote

Markdown.pl Output

<p>A paragraph with a blockquote afterwards with no gap.</p>

<blockquote>
  <p>Ohai I am a blockquote.</p>
</blockquote>

<p>A paragraph with a blockquote afterwards with a one-line gap.</p>

<blockquote>
  <p>Ohai I am another blockquote</p>
</blockquote>

Sundown Output

<p>A paragraph with a blockquote afterwards with no gap.
&gt; Ohai I am a blockquote.</p>

<p>A paragraph with a blockquote afterwards with a one-line gap.</p>

<blockquote>
<p>Ohai I am another blockquote</p>
</blockquote>
@certik
Copy link

certik commented Sep 2, 2012

Indeed, the same with "```" and other things. I noticed, that github used to have the same problem, but they fixed it somehow, but I can't see the fix in sundown.

GerHobbelt pushed a commit to GerHobbelt/soldout that referenced this issue Feb 11, 2021
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