mathdown icon indicating copy to clipboard operation
mathdown copied to clipboard

Formatting inside quotes

Open cben opened this issue 10 years ago • 3 comments

> quote
# Header 0123456789

Renderend now as a header inside a continued quote.

  • That's a CM bug. Should be considered outside quote: http://johnmacfarlane.net/babelmark2/?text=%3E+lazy%0Aquote%0A%23+Header%3F Or, if requiring empty line before header, render as continued quote but not highlighted as header.

(The non-portability here is one of these things where having a "markdown lint" would help.)

Made worse by 2 bugs => only Header is colored green as a quote.

  • The # is bright-bluish - wrong CSS cascading?
  • 0123456789 is blue, somehow due to GFM styling it as github SHA link and my kludge unstyling it.

Should be

But here things are

cben avatar Apr 24 '14 22:04 cben

Similar issue with header after link target:

...
[1]: http://example.com
# Header

cben avatar Apr 24 '14 22:04 cben

Correction: markdown clearly allows header inside quote:

> # Header?

http://johnmacfarlane.net/babelmark2/?normalize=1&text=%3E+%23+Header%3F

So the "lazy continuation" case may not be a CM bug. Similar results with lazy list: http://johnmacfarlane.net/babelmark2/?normalize=1&text=-+lazy%0Alist%0A%23+Header%3F Notably, Markdown.pl and pandoc strict both consider it header in a list.

The bottom line is that a I should not apply blue color to headers inside quote/list but let the quote/list color win to make the structure clear.

cben avatar May 21 '14 03:05 cben

  • [ ] Format leading whitespace inside quotes in monospace
  • [ ] Recognize lists inside quotes (missing in markdown.js?)

And while not formatting-related:

  • [ ] Continue quotes (and things inside quotes) on Enter, a-la https://github.com/jamiebicknell/Markdown-Helper

cben avatar Jun 07 '14 02:06 cben