fix(toc): encode string returned by parseHeader

pull/674/head
Divyansh Singh 3 years ago
parent c219c0f1dd
commit a0bc6cda52

@ -95,7 +95,8 @@ export const createMarkdownRenderer = async (
.use(toc, { .use(toc, {
slugify, slugify,
level: [2, 3], level: [2, 3],
format: parseHeader, format: (x: string, htmlencode: (s: string) => string) =>
htmlencode(parseHeader(x)),
listType: 'ul', listType: 'ul',
...options.toc ...options.toc
}) })

Loading…
Cancel
Save