From 2151a626cd4905f6bac0b2d52ac8c886ee29734f Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Tue, 10 May 2022 15:43:01 +0100 Subject: [PATCH] Doc: Disable linkify to prevent text from being incorrectly converted to a link --- packages/tools/website/utils/render.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/tools/website/utils/render.ts b/packages/tools/website/utils/render.ts index 22fb65aa25..48e6813729 100644 --- a/packages/tools/website/utils/render.ts +++ b/packages/tools/website/utils/render.ts @@ -49,5 +49,10 @@ export function getMarkdownIt() { export function markdownToPageHtml(md: string, templateParams: TemplateParams): string { const markdownIt = getMarkdownIt(); markdownIt.use(headerAnchor); + markdownIt.linkify.set({ + 'fuzzyLink': false, + 'fuzzyIP': false, + 'fuzzyEmail': false, + }); return renderMustache(markdownIt.render(md), templateParams); }