Improve bullet points documentation
This commit is contained in:
@ -5,17 +5,16 @@
|
|||||||
To make a bullet point, simply make a paragraph into a bullet point:
|
To make a bullet point, simply make a paragraph into a bullet point:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
const text = new docx.TextRun("Bullet points");
|
const text = new TextRun("Bullet points");
|
||||||
const paragraph = new docx.Paragraph(text).bullet();
|
const paragraph = new Paragraph({
|
||||||
|
text: "Bullet points",
|
||||||
const text2 = new docx.TextRun("Are awesome");
|
bullet: {
|
||||||
const paragraph2 = new docx.Paragraph(text2).bullet();
|
level: 0, // How deep you want the bullet to me
|
||||||
|
},
|
||||||
doc.add(paragraph);
|
});
|
||||||
doc.add(paragraph2);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### This will produce:
|
### This will produce:
|
||||||
|
|
||||||
* Bullet points
|
- Bullet points
|
||||||
* Are awesome
|
- Are awesome
|
||||||
|
Reference in New Issue
Block a user