Files
docx-js/docs/usage/bullet-points.md
Renan Duarte Leal 021f1b0c4d Update bullet-points.md (#2684)
Excluding ; from example

Co-authored-by: Dolan <dolan_miu@hotmail.com>
2024-10-11 01:13:26 +01:00

33 lines
701 B
Markdown

# Bullet Points
!> Bullet Points requires an understanding of [Paragraphs](usage/paragraph.md).
## Example
To make a bullet point, simply make a paragraph into a bullet point:
```ts
const doc = new Document({
sections: [{
children: [
new Paragraph({
text: "Bullet points",
bullet: {
level: 0 // How deep you want the bullet to be. Maximum level is 9
}
}),
new Paragraph({
text: "Are awesome",
bullet: {
level: 0
}
})
],
}]
});
```
### This will produce:
- Bullet points
- Are awesome