Nested lists
categories: upstream
tags: lists
Description/Summary
L1 – foo1 L1 – foo2 L2 – bar1 L2 – bar2 L3 – baz1 L3 – baz2 L4 – zoo1 L4 – zoo2 L5 – numbered1 L5 – numbered2 L4 – zoo1 L4 – zoo2 L3 – baz1 L3 – baz2 L2 – bar1 L2 – bar2 L1 – foo1 L1 – foo2 Unordered list inside descriptive list # bar1 description for bar1 foo1 foo2 bar2 description for bar2 foo3 foo4 Descriptive list inside unordered list # Seems like Blackfriday style descriptive list syntax does not work when that list is nested in other lists.
Content
- L1 – foo1
- L1 – foo2
- L2 – bar1
- L2 – bar2
- L3 – baz1
- L3 – baz2
- L4 – zoo1
- L4 – zoo2
- L5 – numbered1
- L5 – numbered2
- L4 – zoo1
- L4 – zoo2
- L3 – baz1
- L3 – baz2
- L2 – bar1
- L2 – bar2
- L1 – foo1
- L1 – foo2
Unordered list inside descriptive list #
- bar1
- description for bar1
- foo1
- foo2
- bar2
- description for bar2
- foo3
- foo4
Descriptive list inside unordered list #
Seems like Blackfriday style descriptive list syntax does not work when that list is nested in other lists.
So in that case, switch back to the descriptive list syntax used in
ox-md
.
- foo1
- bar1: description for bar1
- bar2: description for bar2
- foo2
- bar3: description for bar3
- bar4: description for bar4
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Nested lists" | |
Title | "Nested lists" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/nested-lists/" | |
RelPermalink | "/posts/nested-lists/" | |
Data |
| |
NextPage | List following a list | |
PrevPage | Source blocks with highlight shortcode | |
NextInSection | List following a list | |
PrevInSection | Source blocks with highlight shortcode |
Page Params (Debug)
Key | Type | Value |
---|---|---|
categories | []string | "upstream" |
date | time.Time | 2017-07-31 00:00:00 +0000 UTC |
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2018-05-18 16:11:44 -0400 -0400 |
publishdate | time.Time | 2017-07-31 00:00:00 +0000 UTC |
tags | []string | "lists" |
title | string | "Nested lists" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "8f98a1de79d9bd47265c452958e11944" |
BaseFileName | "nested-lists" |
TranslationBaseName | "nested-lists" |
Lang | "en" |
Section | "posts" |
LogicalName | "nested-lists.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/nested-lists.md" |