@turbodocx/html-to-docx 1.15.2 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/html-to-docx.esm.js +2 -2
- package/dist/html-to-docx.umd.js +2 -2
- package/index.d.ts +25 -0
- package/package.json +17 -4
package/README.md
CHANGED
|
@@ -203,6 +203,17 @@ full fledged examples can be found under `example/`
|
|
|
203
203
|
- `restart` <"continuous"|"newPage"|"newSection"> numbering restart strategy. Defaults to `continuous`.
|
|
204
204
|
- `numbering` <?[Object]>
|
|
205
205
|
- `defaultOrderedListStyleType` <?[String]> default ordered list style type. Defaults to `decimal`.
|
|
206
|
+
- `heading` <?[Object]> custom heading styles configuration
|
|
207
|
+
- `heading1`-`heading6` <?[Object]> heading style configuration
|
|
208
|
+
- `font` <?[String]> font family
|
|
209
|
+
- `fontSize` <?[Number]> font size in half-points
|
|
210
|
+
- `bold` <?[Boolean]> whether text is bold. Defaults to `true`
|
|
211
|
+
- `spacing` <?[Object]> paragraph spacing configuration
|
|
212
|
+
- `before` <?[Number]> spacing before heading in twips
|
|
213
|
+
- `after` <?[Number]> spacing after heading in twips
|
|
214
|
+
- `keepLines` <?[Boolean]> keep lines together. Defaults to `true`
|
|
215
|
+
- `keepNext` <?[Boolean]> keep with next paragraph. Defaults to `true`
|
|
216
|
+
- `outlineLevel` <?[Number]> outline level (0-5)
|
|
206
217
|
- `decodeUnicode` <?[Boolean]> flag to enable unicode decoding of header, body and footer. Defaults to `false`.
|
|
207
218
|
- `lang` <?[String]> language localization code for spell checker to work properly. Defaults to `en-US`.
|
|
208
219
|
- `direction` <?[String]> text direction for RTL (right-to-left) languages. Set to `'rtl'` for Arabic, Hebrew, etc. Defaults to `'ltr'`.
|