Replies: 1 comment 3 replies
-
You can add styles to bullet or list items by setting the https://github.com/dolanmiu/docx/blob/master/src/file/numbering/level.ts#L209-L212 Which has the options: https://github.com/dolanmiu/docx/blob/master/src/file/paragraph/run/properties.ts#L36-L76 An example of it can be found here: https://github.com/dolanmiu/docx/blob/master/demo/3-numbering-and-bullet-points.ts#L17-L21 Is this what you're looking for? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@dolanmiu How would I style the bullet or number for a list item (or set of list items) with respect to size, italics, bold, underline, and font. Since each list can have a different set of styles it does not make sense to style them all in the numbering section of the IPropertiesOptions. Seems like you would need to set them on the individual list item paragraphs (even though these specific properties are TextRun level not Paragraph level). Do you have an example of styling the bullets / numbers on list items?
Beta Was this translation helpful? Give feedback.
All reactions