Also special-case plain list items containing only paragraphs and sublists.

This seems to be the behavior of the upstream org html exporter.
This commit is contained in:
Tom Alexander
2023-12-21 17:27:19 -05:00
parent 2914e42ba1
commit 27ff13e675
3 changed files with 21 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ use crate::intermediate::IPlainListSimpleItem;
use super::macros::render;
use super::RenderObject;
/// Special case for list items with only 1 child which is a paragraph. In those cases, the paragraph tags are omitted. This is equivalent to a Paragraph but in a different struct to have a different type tag.
/// Special case for list items with only paragraphs and sublists as their children. In those cases, the paragraph tags are omitted. This is equivalent to a Paragraph but in a different struct to have a different type tag.
#[derive(Debug, Serialize)]
#[serde(tag = "type")]
#[serde(rename = "plain_list_simple_item")]