mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Doc: Disable linkify to prevent text from being incorrectly converted to a link
This commit is contained in:
parent
0fc65acfa2
commit
2151a626cd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user