From a24d745d750feec4842fa33c264bcfe5f252b041 Mon Sep 17 00:00:00 2001 From: Eli Flanagan Date: Thu, 25 Apr 2019 09:49:44 -0400 Subject: [PATCH] fix broken documentation links --- docs/usage/headers-and-footers.md | 6 +++--- docs/usage/paragraph.md | 6 +++--- docs/usage/styling-with-xml.md | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/usage/headers-and-footers.md b/docs/usage/headers-and-footers.md index f1d351dee3..22951abdee 100644 --- a/docs/usage/headers-and-footers.md +++ b/docs/usage/headers-and-footers.md @@ -23,7 +23,7 @@ doc.Header.createImage([BUFFER_OF_YOUR_IMAGE]); doc.Footer.createImage([BUFFER_OF_YOUR_IMAGE]); ``` -Refer to `demo8.js` for more information +Refer to [`demo8.ts`](https://github.com/dolanmiu/docx/blob/master/demo/demo8.ts) for more information. ## Multiple Headers and Footers @@ -38,10 +38,10 @@ Also all the supported section properties are implemented according to: http://o // Add new section with another header and footer doc.addSection({ headers: { - default: header + default: header }, footers: { - default: footer + default: footer }, pageNumberStart: 1, pageNumberFormatType: docx.PageNumberFormat.DECIMAL, diff --git a/docs/usage/paragraph.md b/docs/usage/paragraph.md index 0f9d90f412..6864bd1e73 100644 --- a/docs/usage/paragraph.md +++ b/docs/usage/paragraph.md @@ -82,10 +82,10 @@ When a paragraph is justified, you may want to not justify the contents of incom ![Justified line before](https://user-images.githubusercontent.com/7989576/53820338-e060c680-3f6b-11e9-817c-ecb43271951e.png) -This is possible to achieve using: +This is possible to achieve using: ```ts -this.doc.Settings.addCompatibility().doNotExpandShiftReturn() +this.doc.Settings.addCompatibility().doNotExpandShiftReturn(); ``` The result is: @@ -122,7 +122,7 @@ var paragraph = new docx.Paragraph("Hello World on another page").pageBreakBefor ![Page Break Before in Word](https://user-images.githubusercontent.com/34742290/40176503-df3a8398-59db-11e8-8b9c-d719f13aa8b4.png) -Example: https://github.com/dolanmiu/docx/blob/master/demo/demo15.js +Example: https://github.com/dolanmiu/docx/blob/master/demo/demo15.ts ## Page break control diff --git a/docs/usage/styling-with-xml.md b/docs/usage/styling-with-xml.md index ac3a757d36..5f138d31d6 100644 --- a/docs/usage/styling-with-xml.md +++ b/docs/usage/styling-with-xml.md @@ -44,4 +44,4 @@ doc.addParagraph(paragraph); doc.createParagraph("Some normal text"); ``` -Example: https://github.com/dolanmiu/docx/blob/master/demo/demo13.js +Example: https://github.com/dolanmiu/docx/blob/master/demo/demo13.ts