fix: align nested rendering CSS synchronization and Word style inheritance

This commit is contained in:
2026-11-04 16:42:10 +08:00
parent 6cc833183d
commit 06c5368b05
15 changed files with 408 additions and 42 deletions
@@ -57,6 +57,11 @@ local function list_paragraphs(list)
return list
end
local function quoted_paragraphs(quote)
for index, block in ipairs(quote.content) do
if block.t == 'Para' or block.t == 'Plain' then
quote.content[index] = pandoc.Div({block}, pandoc.Attr('', {}, {['custom-style']='MDHelperSourceInnerQuote'}))
end
end
return quote:walk({Div=function(block)
if block.attributes['custom-style'] == 'MDHelperSourceListParagraph' then
block.attributes['custom-style'] = 'MDHelperSourceQuotedListParagraph'