moved bullet points to Wiki
This commit is contained in:
20
README.md
20
README.md
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user