mirror of
https://github.com/dolanmiu/docx.git
synced 2026-12-01 16:55:59 +01:00
Excluding ; from example Co-authored-by: Dolan <dolan_miu@hotmail.com>
701 B
701 B
Bullet Points
!> Bullet Points requires an understanding of Paragraphs.
Example
To make a bullet point, simply make a paragraph into a bullet point:
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