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:
|
||||
|
||||
```ts
|
||||
const text = new docx.TextRun("Bullet points");
|
||||
const paragraph = new docx.Paragraph(text).bullet();
|
||||
|
||||
const text2 = new docx.TextRun("Are awesome");
|
||||
const paragraph2 = new docx.Paragraph(text2).bullet();
|
||||
|
||||
doc.add(paragraph);
|
||||
doc.add(paragraph2);
|
||||
const text = new TextRun("Bullet points");
|
||||
const paragraph = new Paragraph({
|
||||
text: "Bullet points",
|
||||
bullet: {
|
||||
level: 0, // How deep you want the bullet to me
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
### This will produce:
|
||||
|
||||
* Bullet points
|
||||
* Are awesome
|
||||
- Bullet points
|
||||
- Are awesome
|
||||
|
Reference in New Issue
Block a user