You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Desktop, Mobile: Restrict auto-detection of links, and added option to toggle linkify (#4205)
This commit is contained in:
@@ -402,7 +402,7 @@ export default class MdToHtml {
|
||||
const markdownIt = new MarkdownIt({
|
||||
breaks: !this.pluginEnabled('softbreaks'),
|
||||
typographer: this.pluginEnabled('typographer'),
|
||||
linkify: true,
|
||||
linkify: this.pluginEnabled('linkify'),
|
||||
html: true,
|
||||
highlight: (str: string, lang: string) => {
|
||||
let outputCodeHtml = '';
|
||||
@@ -495,7 +495,7 @@ export default class MdToHtml {
|
||||
}
|
||||
}
|
||||
|
||||
setupLinkify(markdownIt);
|
||||
if (this.pluginEnabled('linkify')) setupLinkify(markdownIt);
|
||||
|
||||
const renderedBody = markdownIt.render(body, context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user