From 60a599a5507dd7892cf7c9310094c67a7f8b0cd8 Mon Sep 17 00:00:00 2001 From: Dolan Date: Thu, 22 Aug 2019 00:28:42 +0100 Subject: [PATCH] Improve bullet points documentation --- docs/usage/bullet-points.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/usage/bullet-points.md b/docs/usage/bullet-points.md index dde800ec4d..045ec61d1a 100644 --- a/docs/usage/bullet-points.md +++ b/docs/usage/bullet-points.md @@ -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