Fix override order in default styles

This commit is contained in:
Dolan Miu
2023-06-28 21:40:20 +01:00
parent e3ee455186
commit dfffb066f3
3 changed files with 67 additions and 14 deletions

View File

@ -4,6 +4,18 @@ import * as fs from "fs";
import { Document, ExternalHyperlink, Footer, FootnoteReferenceRun, ImageRun, Packer, Paragraph, TextRun } from "docx";
const doc = new Document({
styles: {
default: {
hyperlink: {
run: {
color: "FF0000",
underline: {
color: "0000FF",
},
},
},
},
},
footnotes: {
1: {
children: [