Adding numberingReplacer for styles.xml at next-compiler.ts
This commit is contained in:
@ -123,7 +123,8 @@ export class Compiler {
|
|||||||
path: "word/document.xml",
|
path: "word/document.xml",
|
||||||
},
|
},
|
||||||
Styles: {
|
Styles: {
|
||||||
data: xml(
|
data: (() => {
|
||||||
|
const xmlStyles = xml(
|
||||||
this.formatter.format(file.Styles, {
|
this.formatter.format(file.Styles, {
|
||||||
viewWrapper: file.Document,
|
viewWrapper: file.Document,
|
||||||
file,
|
file,
|
||||||
@ -135,7 +136,10 @@ export class Compiler {
|
|||||||
encoding: "UTF-8",
|
encoding: "UTF-8",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
),
|
);
|
||||||
|
const referencedXmlStyles = this.numberingReplacer.replace(xmlStyles, file.Numbering.ConcreteNumbering);
|
||||||
|
return referencedXmlStyles;
|
||||||
|
})(),
|
||||||
path: "word/styles.xml",
|
path: "word/styles.xml",
|
||||||
},
|
},
|
||||||
Properties: {
|
Properties: {
|
||||||
|
Reference in New Issue
Block a user