![]() ![]() For consistency across implementations, I find it to be a good practice to include a blank line between each list item if I need to use a blank line anywhere within a list. While some implementations have copied this behavior, not all have and there are various edge cases that differ between them. While it is not documented one way or another in the rules, this is the behavior of the original reference implementation (only list items which border a blank line (the item before and after the blank line) get tags). If you don't want the extra tags, then you can't have more than one block level element nested inside a list item.įinally, I'll note that in the example above the first list item did not get the tags. If list items are separated by blank lines, Markdown will wrap the items in tags in the HTML output. That is, the contents of the list items are now wrapped in tags. One thing to note is that the output this generates includes the side-effect that you now have a "lazy list". In that case, you would need to add a blank line between the last list item and the paragraph that follows, so you do here as well. The key is to think of everything nested in the list item to be its own standalone Markdown document which is indented four spaces from the rest of the document. You need to include some blank lines to tell Markdown when to start the list, when to end the list, when to start a paragraph (which not in the list) etc. Is this just too complicated to encapsulate in Markdown, and is a case where I should just use inline HTML instead? The particular behaviors also vary based on which flavor of Markdown I'm using. With different indent levels for the " but then," but no matter what it either joins with " subpoint 3" or it just becomes another child indent under the bullet point. ![]() * and here's one more point just to drive it home * Here is another bullet point it has sub-points: I have tried several variations of this: * Here is a bullet point I cannot seem to have the ".but then continues with." bit to remain in the same bullet point that encapsulates the sub-list.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |