mathdown
mathdown copied to clipboard
Formatting inside quotes
> 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
Similar issue with header after link target:
...
[1]: http://example.com
# Header
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.
- [ ] 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