When you have a code snippet in a numbered list, indent snippets so they match the indentation of their parent steps (typically two spaces). Here is how this Markdown is rendered in HTML: Code snippets in procedures To avoid this unfortunate indentation and numbering, insert a second blank line feed so you have two line feeds separating the introductory sentence of the second procedure from the last numbered item of the first list. When the Markdown is rendered, the introduction for the second procedure isn't indented (see "You can also add.") and note how the numbering for the second procedure starts at 5: When you publish your document, the Markdown library will indent the first-level list items for you: Take a look at these list topics in this section:įor first-level lists introduced by a left-justified introductory sentence, we follow this Markdown standard: left-justify all first-level list items. While single-level lists are pretty straightforward, when you start nesting them, you can run into indentation issues. Lists are a great way to explain procedures (numbered steps) or simply itemize items (bulleted lists). We'll also demonstrate how to insert spaces to incorporate code blocks, images, and nested lists within a set of procedures. This doc covers how to handle parent (first-level), child (second-level), and grandchild (third-level) lists. Indentation can also affect the file's readability when it's rendered in HTML. When you're writing in Markdown, indentation can make your doc source more readable.
0 Comments
Leave a Reply. |