@jgm, is it possible to do something with floating indentation in blockquotes? I doubt that someone vary it within a single block. This flexibility makes parsers more complex than nesessary (need hacks to remap floating indents or fall into “serial” mode).
If spec allows to terminate blockquotes on indent change (before or after “>”), that sould simplify things.
@jgm, is it possible to do something with floating indentation in blockquotes? I doubt that someone vary it within a single block. This flexibility makes parsers more complex than nesessary (need hacks to remap floating indents or fall into “serial” mode).
Perhaps this is true for some parsing strategies. The flexibility doesn’t complicate the parsing strategy used in cmark and commonmark.js much at all.
Case from your example is not a problem at all - blockquote content has fixed shift for all lines. In my example content shift is drifting on each line.
Are there any cases, when such drifting is really needed? IMHO, visually it looks ugly. It seems, that if user starts using one style, he will keep it the same on all bq lines
or the parsing strategy for nested blockquote is to just count the number of > intermixed with less than 4 spaces?
I wouldn’t mind to force the blockquote to be >{n} {m < 4} instead of (> {n < 4})+ (read as as many > followed by less than 4 spaces, vs at least a > followed by less than 4 spaces).
Yes, as in your examples. It would be nice to “fixate” visual vertical lines:
for >
for inner left side.
In other case - split blockqoutes to several one. Spaces in any place will be allowed, as before, but “use of the same indentation style” will be required within any single blockquote.
I noticed “simplification” tendency in last specs (emphasis, links/labels, html, line breaks between generated tags) and i like it. Suggestion is to consider blockquotes cleanup too. It’s the most strange thing in all spec.
I agree, it looks ugly. And in some sense, it’s not “needed” – an author could always avoid doing things like this. But the tradition of Markdown has always been to be maximally forgiving and allow sloppiness. (That’s one reason writing Markdown parsers is hard.) If you don’t like this, you might prefer reStructuredText.