Merge pull request #789 from dolanmiu/feat/compat-mode

#627 Add footnotes relationships
This commit is contained in:
Dolan
2021-03-02 00:43:00 +00:00
committed by GitHub
12 changed files with 104 additions and 63 deletions

View File

@ -26,6 +26,7 @@ interface IXmlifyedFileMapping {
readonly CustomProperties: IXmlifyedFile;
readonly AppProperties: IXmlifyedFile;
readonly FootNotes: IXmlifyedFile;
readonly FootNotesRelationships: IXmlifyedFile;
readonly Settings: IXmlifyedFile;
}
@ -189,9 +190,13 @@ export class Compiler {
path: "docProps/app.xml",
},
FootNotes: {
data: xml(this.formatter.format(file.FootNotes, file.Document), prettify),
data: xml(this.formatter.format(file.FootNotes.View, file.FootNotes), prettify),
path: "word/footnotes.xml",
},
FootNotesRelationships: {
data: xml(this.formatter.format(file.FootNotes.Relationships, file.FootNotes), prettify),
path: "word/_rels/footnotes.xml.rels",
},
Settings: {
data: xml(this.formatter.format(file.Settings, file.Document), prettify),
path: "word/settings.xml",