fix: align nested rendering CSS synchronization and Word style inheritance
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user