# What changed in docx-preview

> 2 changes in docx-preview 0.4 from its official release notes, upgrade guides and advisories: 2 new APIs and options. Each one cited. Sources checked 2026-10-17. HTML: https://unstale.sh/npm/docx-preview/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## docx-preview 0.4

### New APIs and options

- Added an h hook to rendering options to intercept HTML element creation; it is now used in most places to create HTML nodes. (0.4.0) — [release notes](https://github.com/VolodymyrBaydalka/docxjs/releases/tag/0.4.0)
- Added support for nested smart tags. (0.4.0) — [release notes](https://github.com/VolodymyrBaydalka/docxjs/releases/tag/0.4.0)
