How to add a code block to a markdown list
Markdown code blocks in lists explained. Learn about proper indentation, correct use of triple backticks, and attention to renderer-specific quirks. Many code examples.
✘ - Not Supported
◔ - Limited
◑ - Moderate
◕ - High
◒ - Partial
Sources and recommended, further resources on the topic:
Markdown parser feature comparison by Jonas Jared Jacek is licensed under CC BY-SA 4.0.
This license requires that reusers give credit to the creator. It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, for noncommercial purposes only. To give credit, provide a link back to the original source, the author, and the license e.g. like this:
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://www.ditig.com/markdown-parser-feature-comparison">Markdown parser feature comparison</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://www.j15k.com/">Jonas Jared Jacek</a> is licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="license noopener noreferrer">CC BY-SA 4.0</a>.</p>
For more information see the Ditig legal page.
“Content precedes design. Design in the absence of content is not design, it's decoration.”