otomate 0.2.0 → 0.2.1
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 +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -295,13 +295,18 @@ When CSS rules are provided, otomate generates real Word styles with OOXML forma
|
|
|
295
295
|
| `font-weight: bold` | `w:b` | ≥700 or "bold" |
|
|
296
296
|
| `font-style: italic` | `w:i` | |
|
|
297
297
|
| `color` | `w:color` | Hex, rgb(), named colors |
|
|
298
|
-
| `background-color` | `w:shd`
|
|
298
|
+
| `background-color` | `w:shd` | Paragraph fill + run highlight |
|
|
299
299
|
| `text-decoration: underline` | `w:u` | |
|
|
300
300
|
| `text-decoration: line-through` | `w:strike` | |
|
|
301
301
|
| `text-align` | `w:jc` | left, center, right, justify→both |
|
|
302
|
-
| `margin-top/bottom` | `w:spacing before/after` | Converted to twips |
|
|
303
|
-
| `margin-left` | `w:ind left` | Converted to twips |
|
|
302
|
+
| `margin-top` / `margin-bottom` | `w:spacing before/after` | Converted to twips |
|
|
303
|
+
| `margin-left` / `margin-right` | `w:ind left/right` | Converted to twips |
|
|
304
|
+
| `padding-top` / `padding-bottom` | `w:spacing before/after` | Added on top of margin values |
|
|
305
|
+
| `padding-left` / `padding-right` | `w:ind left/right` | Added on top of margin values |
|
|
306
|
+
| `text-indent` | `w:ind firstLine` | Converted to twips |
|
|
304
307
|
| `line-height` | `w:spacing line` | |
|
|
308
|
+
| `border` | `w:pBdr` (all sides) | Shorthand; per-side overrides take priority |
|
|
309
|
+
| `border-top` / `border-bottom` / `border-left` / `border-right` | `w:pBdr` | solid→single, dashed, dotted, double |
|
|
305
310
|
|
|
306
311
|
Container CSS (on `div` elements) cascades to all child paragraphs, headings, and list items.
|
|
307
312
|
|