Replies: 3 comments 4 replies
-
To rephrase this, this is inline with “source of the document looks roughly like the rendered document”. When lists are rendered, they are typically indented relative to the paragraphs (the marker itself is indented). |
Beta Was this translation helpful? Give feedback.
-
If this were allowed, then I think people would assume you could do
Then they'd be confused when, because of "laziness", that last line is added to the second list item. I've been tempted to use indentation for another purpose: distinguishing block quotes that are part of a paragraph from those that are separate blocks. (If the block quote is part of a paragraph, then the following content should not be indented in formatted output, but if it not, the following content should be indented. In my own markdown writing with pandoc I end up putting raw tex |
Beta Was this translation helpful? Give feedback.
-
This would be changing current "laziness" which allows this to be a list item
|
Beta Was this translation helpful? Give feedback.
-
This might have been discussed before as it is a quite simple idea, but it
could potentially relieve a requirement that seems to be an annoyance
to many: newline before lists. Previous discussions: #137, #161, #170, #173.
When hardwrapping text, one does usually not add additional indentation to
lines that continue a paragraph, so an additional indent could be used to
indicate that it is the start of a new block, e.g. a list item.
So
would be unchanged and form a single paragraph, but
would create a list. It seems fairly natural to have indentation here, as lists
that are immediately after a paragraph are usually a "subtopic" of that
paragraph.
A larger example with just compact lists of topics, in markdown:
same example, with proposed syntax
One could discuss where the indentation starts for each type of list here.
In the spirit of uniformity, this idea could perhaps be generalized to start any
type of block and not just lists, for example, it could allow e.g
It could also generalize to break other blocks than paragraphs, but the
current implementation does not seem to mind breaking non-paragraphs
without newlines already? E.g. headings:
Beta Was this translation helpful? Give feedback.
All reactions