diff --git a/docs/usage/styling-with-js.md b/docs/usage/styling-with-js.md index 26d294c942..c8bbb5c8db 100644 --- a/docs/usage/styling-with-js.md +++ b/docs/usage/styling-with-js.md @@ -22,7 +22,8 @@ const name = new TextRun({ ### Run formatting - `bold`, `italics`, `smallCaps`, `allCaps`, `strike`, `doubleStrike`, `subScript`, `superScript`: Set the formatting property to true -- `underline(style="single", color=null)`: Set the underline style and color +- `underline({type="single", color=null})`: Set the underline style and color +- `emphasisMark({type="dot"})`: Set the emphasis mark style - `color(color)`: Set the text color, using 6 hex characters for RRGGBB (no leading `#`) - `size(halfPts)`: Set the font size, measured in half-points - `font(name)`: Set the run's font diff --git a/docs/usage/text.md b/docs/usage/text.md index 6cbd9da224..4816959eb6 100644 --- a/docs/usage/text.md +++ b/docs/usage/text.md @@ -68,6 +68,15 @@ const text = new TextRun({ }); ``` +### Emphasis Mark + +```ts +const text = new TextRun({ + text: "and then emphasis mark", + emphasisMark: {}, +}); +``` + ### Strike through ```ts