moved bullet points to Wiki

This commit is contained in:
Dolan
2017-03-13 00:54:05 +00:00
committed by GitHub
parent e6ed3a55ff
commit 8c58ec2ba4

View File

@ -33,7 +33,6 @@
- [Underline](#) - [Underline](#)
- [Break](#) - [Break](#)
- [Chaining](#) - [Chaining](#)
- [Bullet Points](#)
- [Exporting](#) - [Exporting](#)
- [Express](#) - [Express](#)
- [Standalone .docx file](#) - [Standalone .docx file](#)
@ -53,6 +52,9 @@ $ npm run demo
will run the demo app in the `demo` folder, which creates a file called "My Document.docx" in the root of the project will run the demo app in the `demo` folder, which creates a file called "My Document.docx" in the root of the project
# Guide
Please refer to [the Wiki](https://github.com/dolanmiu/docx/wiki) for details on how to use this library, examples and much more!
# Usage # Usage
@ -243,22 +245,6 @@ What if you want to create a paragraph which is ***bold*** and ***italic***?
paragraph.bold().italic(); paragraph.bold().italic();
``` ```
## Bullet Points
To make a bullet point, simply make a paragraph into a bullet point:
```js
var text = new docx.TextRun("Bullet points");
var paragraph = new docx.Paragraph(text).bullet();
var text2 = new docx.TextRun("Are awesome");
var paragraph2 = new docx.Paragraph(text2).bullet();
doc.addParagraph(paragraph);
doc.addParagraph(paragraph2);
```
This will produce:
* Bullet points
* Are awesome
# Exporting # Exporting
Check the Wiki for exporting guide Check the Wiki for exporting guide