From 0e2bfe9e3fae9d39ddd4b86f82765a60d8a4ef2e Mon Sep 17 00:00:00 2001 From: Matt Walsh <51417385+netbymatt@users.noreply.github.com> Date: Wed, 3 Feb 2021 14:53:29 -0600 Subject: [PATCH] Allow styles and headings with numbering --- src/file/paragraph/properties.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/file/paragraph/properties.ts b/src/file/paragraph/properties.ts index b12bfedd8e..b87ef6b37a 100644 --- a/src/file/paragraph/properties.ts +++ b/src/file/paragraph/properties.ts @@ -125,8 +125,10 @@ export class ParagraphProperties extends IgnoreIfEmptyXmlComponent { } if (options.numbering) { - if (!options.numbering.custom) { + if(!options.style && !options.heading) { + if (!options.numbering.custom) { this.push(new Style("ListParagraph")); + } } this.push(new NumberProperties(options.numbering.reference, options.numbering.level)); }