diff --git a/src/lib/export/odt.ts b/src/lib/export/odt.ts index f6325fd..984849c 100644 --- a/src/lib/export/odt.ts +++ b/src/lib/export/odt.ts @@ -156,6 +156,11 @@ function rewriteStylesXml(odtBytes: Uint8Array): Uint8Array { // font-face declaration and the Standard style's font-name attributes. styles = styles.split(ODFKIT_DEFAULT_FONT).join(EXPORT_FONT); + styles = styles.replace( + '… block so the // font-size/margin replacements never bleed across heading levels. for (const { name, fontSize, marginTop, marginBottom } of HEADING_STYLE_OVERRIDES) {