For plain list items with a single child that is a paragraph, do not wrap in paragraph html tags.

This is mimicking the behavior from org-mode's HTML exporter.
This commit is contained in:
Tom Alexander
2023-12-21 17:18:51 -05:00
parent a8969f141d
commit 2914e42ba1
10 changed files with 99 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
{@select key=.type}
{@eq value="paragraph"}{>paragraph/}{/eq}
{@eq value="plain_list"}{>plain_list/}{/eq}
{@eq value="plain_list_simple_item"}{>plain_list_simple_item/}{/eq}
{@eq value="center_block"}{>center_block/}{/eq}
{@eq value="quote_block"}{>quote_block/}{/eq}
{@eq value="special_block"}{>special_block/}{/eq}

View File

@@ -0,0 +1,3 @@
{#.children}
{>object/}
{/.children}