From 84d4d9ed02605503d20a0e4d455237ba9d38f7ff Mon Sep 17 00:00:00 2001 From: jfcere Date: Tue, 19 Nov 2024 23:03:53 -0500 Subject: [PATCH] Minor change --- lib/src/markdown.service.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/src/markdown.service.ts b/lib/src/markdown.service.ts index 2d103ab..e07372b 100644 --- a/lib/src/markdown.service.ts +++ b/lib/src/markdown.service.ts @@ -283,10 +283,9 @@ export class MarkdownService { const defaultCode = renderer.code; renderer.code = (token) => { - if (token.lang === 'mermaid') { - return `
${token.text}
`; - } - return defaultCode(token); + return token.lang === 'mermaid' + ? `
${token.text}
` + : defaultCode(token); }; extendedRenderer.ɵNgxMarkdownRendererExtendedForMermaid = true;