Skip to content

Instantly share code, notes, and snippets.

@tef
Created November 17, 2019 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tef/807a4c9b57aeb3080b5feebc844d5b3a to your computer and use it in GitHub Desktop.
Save tef/807a4c9b57aeb3080b5feebc844d5b3a to your computer and use it in GitHub Desktop.

Blockquotes are awful in markdown, because they're semi optional in continuation lines.

There are three options i've considered:


Option A: Blockquote at start of para, and on every continuation line.

> a
> > b
> c
d

This would parse ( [a] ([b]) [c] ) [d] (quotes in ()s, paras in []s)


Option B: Blockquote at start of Para. No > on continuation lines.

> a
> > b
> c
d

This would parse ( [a] ([b]) [c d] ) (quotes in ()s, paras in []s)

This also works a little like a list does in CommonMark


Option C: CommonMark Rules. Blockquote at start of para, optionally on continuation lines.

> a
> > b
> c
d

This would parse ( [a] ([b c d]) ) (quotes in ()s, paras in []s)


I implemented B, but i'm tempted by A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment