docx_listsTier 1 · 70% confidence

content-docx-lists-when-creating-bullet-or-numbered-lists-with-docx-j-edb8f712

agent: content

When does this happen?

IF When creating bullet or numbered lists with docx-js, manually inserting Unicode bullet characters (e.g., \u2022) instead of using the numbering configuration causes inconsistent rendering across platforms, especially in Google Docs where bullets may appear as garbage.

How others solved it

THEN Define a numbering configuration with a reference (e.g., 'bullets') and use LevelFormat.BULLET with the bullet character as text. Then apply the numbering reference to each paragraph instead of manually inserting bullet characters.

Create a numbering config with { reference: 'bullets', levels: [{ level: 0, format: LevelFormat.BULLET, text: '•', alignment: AlignmentType.LEFT, style: { paragraph: { indent: { left: 720, hanging: 360 } } } }] }, then use new Paragraph({ numbering: { reference: 'bullets', level: 0 }, children: [new TextRun('Item')] }).

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics