Adding numberingReplacer for styles.xml at next-compiler.ts
This commit is contained in:
@ -123,19 +123,23 @@ export class Compiler {
|
|||||||
path: "word/document.xml",
|
path: "word/document.xml",
|
||||||
},
|
},
|
||||||
Styles: {
|
Styles: {
|
||||||
data: xml(
|
data: (() => {
|
||||||
this.formatter.format(file.Styles, {
|
const xmlStyles = xml(
|
||||||
viewWrapper: file.Document,
|
this.formatter.format(file.Styles, {
|
||||||
file,
|
viewWrapper: file.Document,
|
||||||
}),
|
file,
|
||||||
{
|
}),
|
||||||
indent: prettify,
|
{
|
||||||
declaration: {
|
indent: prettify,
|
||||||
standalone: "yes",
|
declaration: {
|
||||||
encoding: "UTF-8",
|
standalone: "yes",
|
||||||
|
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