Skip to content

Commit 28518ae

Browse files
committed
Fix the post-processing script
Signed-off-by: Richard Wall <[email protected]>
1 parent 580eea9 commit 28518ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/gendocs/postprocess/api-doc-postprocess.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { content, data } = matter(apiDocsFile)
1212

1313
let result = content
1414

15-
result = prettier.format(`<div>${result}</div>`, {
15+
result = await prettier.format(`<div>${result}</div>`, {
1616
parser: 'babel',
1717
htmlWhitespaceSensitivity: 'strict',
1818
proseWrap: 'never',
@@ -24,7 +24,7 @@ result = prettier.format(`<div>${result}</div>`, {
2424
result = result.split('\n').slice(1, -2).join('\n')
2525
result = result.replace(new RegExp(/{" "}/g), ' ')
2626

27-
result = prettier.format(result, {
27+
result = await prettier.format(result, {
2828
parser: 'html',
2929
proseWrap: 'never',
3030
htmlWhitespaceSensitivity: 'strict',

0 commit comments

Comments
 (0)