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:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user