fix(plugin-docs): Fix commented title still appears in TOC
MODIFY
packages/plugin-docs/src/markdown.ts
packages/plugin-docs/src/markdown.ts
export function parseTitle(opts: { content: string }) {
- const lines = opts.content.split('\n');
+ const lines = opts.content
+ .replace(/{[\n\s\t]*\/\*[\s\S]*?\*\/[\n\s\t]*}/g, '')
+ .split('\n');
let i = 0;
const ret = [];
while (i < lines.length) {

fix(plugin-docs): Fix #751 commented title still appears in TOC (#757)