Skip to content

Commit

Permalink
Add styles option
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Jan 12, 2022
1 parent aafdca1 commit 8b59b50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ const text = "# hello world";
| description | undefined | string? | |
| lastModifiedBy | undefined | string? | |
| revision | undefined | string? | |
| styles | undefined | IStylesOptions? | |
| background | undefined | IDocumentBackgroundOptions? | |
3 changes: 3 additions & 0 deletions src/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export type Opts = {
| "description"
| "lastModifiedBy"
| "revision"
| "styles"
| "background"
>;

Expand All @@ -127,6 +128,7 @@ export function mdastToDocx(
description,
lastModifiedBy,
revision,
styles,
background,
}: Opts,
images: ImageDataMap
Expand All @@ -141,6 +143,7 @@ export function mdastToDocx(
description,
lastModifiedBy,
revision,
styles,
background,
sections: [{ children: nodes }],
numbering: {
Expand Down

0 comments on commit 8b59b50

Please sign in to comment.