You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
+++ |
|
|
title = "Example block with list syntax in a list" |
|
|
tags = ["src-block", "lists", "hyphen", "example-block", "blackfriday"] |
|
|
categories = ["upstream"] |
|
|
draft = false |
|
|
+++ |
|
|
|
|
|
An upstream bug in _Blackfriday_ Issue #[239](https://github.com/russross/blackfriday/issues/239) caused fenced code blocks in |
|
|
lists to not render correctly if they contain Markdown syntax |
|
|
lists. `ox-hugo` provides a hack to get around that bug. |
|
|
|
|
|
Below is an example of such a case: |
|
|
|
|
|
- List item 1 |
|
|
|
|
|
```text |
|
|
- List item 1.1 in code block |
|
|
- List item 1.2 in code block |
|
|
``` |
|
|
- List item 2 |
|
|
|
|
|
```text |
|
|
+ List item 2.1 in code block |
|
|
+ List item 2.2 in code block |
|
|
``` |
|
|
- List item 3 |
|
|
|
|
|
Another such example, but with spaces before the hyphens in example |
|
|
blocks: |
|
|
|
|
|
- List item 1 |
|
|
|
|
|
```text |
|
|
- List item 1.1 in code block |
|
|
- List item 1.2 in code block |
|
|
``` |
|
|
- List item 2 |
|
|
|
|
|
```text |
|
|
+ List item 2.1 in code block |
|
|
+ List item 2.2 in code block |
|
|
``` |
|
|
- List item 3
|
|
|
|