List following a list
tags: lists
Description/Summary
You need to force end of list when you have something like an unordered list immediately following an ordered list. The easiest and cleanest way to do that is adding a comment between those lists. – Reference That would be the implementing in the Org exporter backend. But in Org, two consecutive blank lines after a list ends the list. In the below example, the foo* items would be in a different <ul> element than the bar* items.
Content
You need to force end of list when you have something like an unordered list immediately following an ordered list.
The easiest and cleanest way to do that is adding a comment between those lists. – Reference
That would be the implementing in the Org exporter backend. But in Org, two consecutive blank lines after a list ends the list.
In the below example, the foo* items would be in a different <ul>
element than the bar* items.
Unordered list following an unordered list #
- foo1
- foo2
- bar1
- bar2
Unordered list following an ordered list #
- foo3
- foo4
- bar3
- bar4
Ordered list following an unordered list #
- foo5
- foo6
- bar5
- bar6
Ordered list following an ordered list #
- foo1
- foo2
- bar1
- bar2
Description list following an ordered list #
- foo1
- foo2
- bar1
- description
- bar2
- description
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "List following a list" | |
Title | "List following a list" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/list-following-a-list/" | |
RelPermalink | "/posts/list-following-a-list/" | |
Data |
| |
NextPage | Inline equations | |
PrevPage | Nested lists | |
NextInSection | Inline equations | |
PrevInSection | Nested lists |
Page Params (Debug)
Key | Type | Value |
---|---|---|
date | time.Time | 2017-07-31 00:00:00 +0000 UTC |
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2018-05-18 16:04:11 -0400 -0400 |
publishdate | time.Time | 2017-07-31 00:00:00 +0000 UTC |
tags | []string | "lists" |
title | string | "List following a list" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "243def7a3c7b7f238901a438166723b5" |
BaseFileName | "list-following-a-list" |
TranslationBaseName | "list-following-a-list" |
Lang | "en" |
Section | "posts" |
LogicalName | "list-following-a-list.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/list-following-a-list.md" |