Allow styles and headings with numbering

This commit is contained in:
Matt Walsh
2021-02-03 14:53:29 -06:00
committed by GitHub
parent 118ea57412
commit 0e2bfe9e3f

View File

@ -125,9 +125,11 @@ export class ParagraphProperties extends IgnoreIfEmptyXmlComponent {
}
if (options.numbering) {
if(!options.style && !options.heading) {
if (!options.numbering.custom) {
this.push(new Style("ListParagraph"));
}
}
this.push(new NumberProperties(options.numbering.reference, options.numbering.level));
}