fix: align legacy styles, nested paragraphs and Word export

This commit is contained in:
2026-10-30 14:53:22 +08:00
parent 2d2ce27ec9
commit bfadd8b8e9
12 changed files with 309 additions and 42 deletions
+9 -1
View File
@@ -56,5 +56,13 @@ local function list_paragraphs(list)
end
return list
end
local function quoted_paragraphs(quote)
return quote:walk({Div=function(block)
if block.attributes['custom-style'] == 'MDHelperSourceListParagraph' then
block.attributes['custom-style'] = 'MDHelperSourceQuotedListParagraph'
end
return block
end})
end
return {{Inlines=function(items) return mark(items, {}) end},
{BulletList=list_paragraphs, OrderedList=list_paragraphs}}
{BulletList=list_paragraphs, OrderedList=list_paragraphs, BlockQuote=quoted_paragraphs}}