diff --git a/tools/dgeni/src/processors/markdown.ts b/tools/dgeni/src/processors/markdown.ts index c306155805..5b1a9a51d0 100644 --- a/tools/dgeni/src/processors/markdown.ts +++ b/tools/dgeni/src/processors/markdown.ts @@ -8,6 +8,7 @@ import graphql from 'highlight.js/lib/languages/graphql'; import scss from 'highlight.js/lib/languages/scss'; import typescript from 'highlight.js/lib/languages/typescript'; import xml from 'highlight.js/lib/languages/xml'; +import { slugify } from 'markdown-toc/lib/utils'; import { marked } from 'marked'; import { markedHighlight } from 'marked-highlight'; @@ -74,6 +75,10 @@ marked.use({ token.href = getLinkUrl(token.href); } }, + renderer: { + heading: (text: string, level: number, raw: string) => + `${text}`, + }, }); export class MarkdownCodeProcessor implements Processor {