1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Doc: Disable linkify to prevent text from being incorrectly converted to a link

This commit is contained in:
Laurent Cozic 2022-05-10 15:43:01 +01:00
parent 0fc65acfa2
commit 2151a626cd

View File

@ -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);
}