fix: align legacy styles, nested paragraphs and Word export
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user