diff --git a/demo/2-declaritive-styles.ts b/demo/2-declaritive-styles.ts index f57251c7e6..67c338364a 100644 --- a/demo/2-declaritive-styles.ts +++ b/demo/2-declaritive-styles.ts @@ -95,6 +95,20 @@ const doc = new Document({ }, }, ], + characterStyles: [ + { + id: "strikeUnderlineCharacter", + name: "Strike Underline", + basedOn: "Normal", + quickFormat: true, + run: { + strike: true, + underline: { + type: UnderlineType.SINGLE, + }, + }, + }, + ], }, numbering: { config: [ @@ -202,6 +216,20 @@ const doc = new Document({ }), ], }), + new Paragraph({ + children: [ + new TextRun({ + text: "Hello World ", + }), + new TextRun({ + style: "strikeUnderlineCharacter", + text: "Underline and Strike", + }), + new TextRun({ + text: " Another Hello World", + }), + ], + }), ], }, ],