Allow styles and headings with numbering
This commit is contained in:
@ -125,8 +125,10 @@ export class ParagraphProperties extends IgnoreIfEmptyXmlComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (options.numbering) {
|
if (options.numbering) {
|
||||||
if (!options.numbering.custom) {
|
if(!options.style && !options.heading) {
|
||||||
|
if (!options.numbering.custom) {
|
||||||
this.push(new Style("ListParagraph"));
|
this.push(new Style("ListParagraph"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.push(new NumberProperties(options.numbering.reference, options.numbering.level));
|
this.push(new NumberProperties(options.numbering.reference, options.numbering.level));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user