File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ Syntax highlighting with [shiki](https://github.com/shikijs/shiki).
107107import { unified } from " unified" ;
108108import markdown from " remark-parse" ;
109109import docx from " remark-docx" ;
110- import { shikiPlugin } from " remark-docx/plugins/code " ;
110+ import { shikiPlugin } from " remark-docx/plugins/shiki " ;
111111
112112const processor = unified ()
113113 .use (markdown)
@@ -138,7 +138,7 @@ import { unified } from "unified";
138138import markdown from " remark-parse" ;
139139import math from " remark-math" ;
140140import docx from " remark-docx" ;
141- import { latexPlugin } from " remark-docx/plugins/math " ;
141+ import { latexPlugin } from " remark-docx/plugins/latex " ;
142142
143143const processor = unified ()
144144 .use (markdown)
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ import math from "remark-math";
99import Zip from "adm-zip" ;
1010import prettier from "prettier" ;
1111import docx , { type DocxOptions } from "." ;
12- import { latexPlugin } from "./plugins/math " ;
12+ import { latexPlugin } from "./plugins/latex " ;
1313import { imagePlugin } from "./plugins/image" ;
1414import { htmlPlugin } from "./plugins/html" ;
15- import { shikiPlugin } from "./plugins/code " ;
15+ import { shikiPlugin } from "./plugins/shiki " ;
1616import { readFile } from "fs/promises" ;
1717
1818const FIXTURE_PATH = "../fixtures" ;
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ import gfm from "remark-gfm";
66import math from "remark-math" ;
77import docx from "../src" ;
88import { imagePlugin } from "../src/plugins/image" ;
9- import { shikiPlugin } from "../src/plugins/code " ;
9+ import { shikiPlugin } from "../src/plugins/shiki " ;
1010import { htmlPlugin } from "../src/plugins/html" ;
11- import { latexPlugin } from "../src/plugins/math " ;
11+ import { latexPlugin } from "../src/plugins/latex " ;
1212// @ts -expect-error no type definition
1313import readmeMd from "../README.md?raw" ;
1414// @ts -expect-error no type definition
You can’t perform that action at this time.
0 commit comments