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

Rule: Blank line inside same blockquote #19

Closed
mivok opened this issue Jul 7, 2014 · 2 comments
Closed

Rule: Blank line inside same blockquote #19

mivok opened this issue Jul 7, 2014 · 2 comments

Comments

@mivok
Copy link
Collaborator

mivok commented Jul 7, 2014

From: http://www.cirosantilli.com/markdown-styleguide/#blockquotes

The style guide says that the same quote shouldn't have blank lines in:

> Some quote
>
> Good, a quote symbol is used

> Some quote

> Bad, the same quote has a blank line separating it.

I suspect this won't be possible to check for, depending on whether blank lines in between block quotes cause them to be separate quotes or not. It won't be possible to see if someone was trying to do two different quotes one after the other, or if it was the same quote.

@mivok mivok added the new rule label Jul 7, 2014
@mivok
Copy link
Collaborator Author

mivok commented Jul 7, 2014

Just tested this. Kramdown parses blank lines in between quotes as two separate quotes, as expected.

Quote one
Same quote

Also same quote

Some text

Another quote

Blank line above here. Github parses is as the same quote.

Some other text

Another test

This had two blank lines in between

@mivok
Copy link
Collaborator Author

mivok commented Jul 7, 2014

This is possible to check for then, just look for two blockquotes (as parsed by kramdown), with nothing but blank lines in between them.

This should be flagged regardless of intent:

  • If the person intended for it to be two quotes, some text should be put in between to force it to be two quotes in multiple parsers.
  • If the person intended for it to be the same quote, then a quote symbol should go on the blank line to prevent kramdown from treating it as two quotes.

@mivok mivok closed this as completed in c5fd372 Aug 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant