Merge pull request #314 from efx/fix-doc-links

fix broken documentation links
This commit is contained in:
Dolan
2019-04-29 12:08:27 +01:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@ doc.Header.createImage([BUFFER_OF_YOUR_IMAGE]);
doc.Footer.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 ## 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 // Add new section with another header and footer
doc.addSection({ doc.addSection({
headers: { headers: {
default: header default: header
}, },
footers: { footers: {
default: footer default: footer
}, },
pageNumberStart: 1, pageNumberStart: 1,
pageNumberFormatType: docx.PageNumberFormat.DECIMAL, pageNumberFormatType: docx.PageNumberFormat.DECIMAL,

View File

@ -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) ![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 ```ts
this.doc.Settings.addCompatibility().doNotExpandShiftReturn() this.doc.Settings.addCompatibility().doNotExpandShiftReturn();
``` ```
The result is: 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) ![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 ## Page break control

View File

@ -44,4 +44,4 @@ doc.addParagraph(paragraph);
doc.createParagraph("Some normal text"); 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