diff --git a/scripts/apidoc.ts b/scripts/apidoc.ts index 01606ec56b1..62fc9ed5762 100644 --- a/scripts/apidoc.ts +++ b/scripts/apidoc.ts @@ -100,6 +100,8 @@ async function build(): Promise { ${toBlock(module.comment)} + ::: + `.replace(/\n +/g, '\n'); const methods = module.getChildrenByKind(TypeDoc.ReflectionKind.Method); @@ -116,8 +118,12 @@ async function build(): Promise { content += ` ## ${prettyMethodName} + ::: v-pre + ${toBlock(signature.comment)} + ::: + `.replace(/\n +/g, '\n'); // Generate parameter section