Example block with list syntax in a list
categories: upstream
tags: src-block lists hyphen example-block blackfriday
Description/Summary
An upstream bug in Blackfriday Issue #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 - List item 1.1 in code block - List item 1.2 in code block List item 2 + List item 2.1 in code block + List item 2.
Content
An upstream bug in Blackfriday Issue #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
- List item 1.1 in code block - List item 1.2 in code block - List item 2
+ 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
- List item 1.1 in code block - List item 1.2 in code block - List item 2
+ List item 2.1 in code block + List item 2.2 in code block - List item 3
Page (Debug)
| Page Variable | Value | |
|---|---|---|
| Name | "Example block with list syntax in a list" | |
| Title | "Example block with list syntax in a list" | |
| ResourceType | "page" | |
| Kind | "page" | |
| Section | "posts" | |
| Draft | false | |
| Type | "posts" | |
| Layout | "" | |
| Permalink | "https://ox-hugo.scripter.co/test/posts/list-has-example-block-with-list-syntax/" | |
| RelPermalink | "/posts/list-has-example-block-with-list-syntax/" | |
| Data |
| |
| NextPage | Example block with escaped Org syntax inside quote block | |
| PrevPage | Example blocks inside quote block, followed by another example block outside | |
| NextInSection | Example block with escaped Org syntax inside quote block | |
| PrevInSection | Example blocks inside quote block, followed by another example block outside |
Page Params (Debug)
| Key | Type | Value |
|---|---|---|
| categories | []string | "upstream" |
| draft | bool | false |
| iscjklanguage | bool | false |
| lastmod | time.Time | 2022-05-27 10:36:55 -0400 -0400 |
| tags | []string | "src-block" "lists" "hyphen" "example-block" "blackfriday" |
| title | string | "Example block with list syntax in a list" |
File Object (Debug)
| FileInfo Variable | Value |
|---|---|
| UniqueID | "089dd32712cc12fefb5fa4210b457db4" |
| BaseFileName | "list-has-example-block-with-list-syntax" |
| TranslationBaseName | "list-has-example-block-with-list-syntax" |
| Lang | "en" |
| Section | "posts" |
| LogicalName | "list-has-example-block-with-list-syntax.md" |
| Dir | "posts/" |
| Ext | "md" |
| Path | "posts/list-has-example-block-with-list-syntax.md" |