feat: 完成 DOCX R4 元素级视觉门禁
建立 Chromium、Word 与 WPS 的可编辑内容、段落几何、页眉页脚、封面、媒体和逐页视觉比较链路。 支持封面独立分节、正文页码重启、主题页边距与横向纸张,并将自然分页差异降为诊断项。 修正代码块内边距和折叠表格单元格边框映射,14 套主题生产矩阵与六组布局视觉矩阵通过。
This commit is contained in:
@@ -57,7 +57,7 @@ local function media_image(media)
|
||||
return pandoc.Image(
|
||||
pandoc.Inlines { pandoc.Str(media.alt_text) },
|
||||
media.path,
|
||||
"",
|
||||
media.binding,
|
||||
{
|
||||
width = media.width,
|
||||
height = media.height
|
||||
@@ -69,6 +69,7 @@ local function replace_image(image)
|
||||
local media = next_media("image")
|
||||
image.src = media.path
|
||||
image.caption = pandoc.Inlines { pandoc.Str(media.alt_text) }
|
||||
image.title = media.binding
|
||||
image.attributes.width = media.width
|
||||
image.attributes.height = media.height
|
||||
return image
|
||||
@@ -181,6 +182,9 @@ return {
|
||||
if structure_plan.titlePolicy.metadataTitle == "suppress" then
|
||||
transformed.meta.title = nil
|
||||
end
|
||||
if structure_plan.metadataPolicy.author == "suppress" then
|
||||
transformed.meta.author = nil
|
||||
end
|
||||
if structure_plan.titlePolicy.firstBodyHeading == "suppress" then
|
||||
suppress_first_body_heading(transformed.blocks)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user