From b0770efffb7318aa723a428b8bc046166a195f10 Mon Sep 17 00:00:00 2001 From: griest024 Date: Tue, 23 Jul 2024 18:39:54 -0400 Subject: [PATCH] fix(dgeni): heading IDs using HTML encoded string (#2940) --- tools/dgeni/src/processors/markdown.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dgeni/src/processors/markdown.ts b/tools/dgeni/src/processors/markdown.ts index 5b1a9a51d0..f8192cf86b 100644 --- a/tools/dgeni/src/processors/markdown.ts +++ b/tools/dgeni/src/processors/markdown.ts @@ -8,7 +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 { slugify } from 'markdown-toc'; import { marked } from 'marked'; import { markedHighlight } from 'marked-highlight'; @@ -77,7 +77,7 @@ marked.use({ }, renderer: { heading: (text: string, level: number, raw: string) => - `${text}`, + `${text}`, }, });