Repository navigation
v9.2.0 - Helper Methods and List Formatting
What's New
Added: 60+ New Getter/Helper Methods
Convenient property access across all element classes:
Run
getBold(),getItalic(),getUnderline(),getStrike()getFont(),getSize(),getColor(),getHighlight()getSubscript(),getSuperscript(),isRTL(),getSmallCaps(),getAllCaps()
Paragraph
getAlignment(),getLeftIndent(),getRightIndent(),getFirstLineIndent(),getHangingIndent()getSpaceBefore(),getSpaceAfter(),getLineSpacing(),getKeepNext(),getKeepLines()getPageBreakBefore(),getOutlineLevel(),getTextDirection(),getWidowControl(),getContextualSpacing()hasNumbering(),hasFields(),hasBookmarks(),hasComments(),hasRevisions(),isEmpty()
Table
getWidth(),getWidthType(),getAlignment(),getLayout(),getIndent()getBorders(),getColumnWidths(),getCellSpacing(),getStyle()hasRows(),isFloating(),hasStyle()
TableRow
getHeight(),getHeightRule(),getIsHeader(),getCantSplit(),getJustification(),isHidden()
TableCell
getWidth(),getWidthType(),getVerticalAlignment(),getVerticalMerge()getMargins(),getBorders(),getShading(),getTextDirection()
Document
getParagraphAt(),getTableAt(),getBodyElementAt()getParagraphIndex(),getTableIndex()getNextParagraph(),getPreviousParagraph()
Hyperlink
getColor(),getUnderline(),getBold(),getItalic(),getFont(),getSize()
Fixed: List Bullet/Number Formatting
- Bullets and numbered list prefixes no longer apply bold formatting by default
- Source document bold formatting on bullets is now ignored during parsing
Changed
- Internal refactoring to use new getter methods throughout codebase
- List level detection for bullets now uses level 0
Install
```bash
npm install docxmlater@9.2.0
```