You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
Desktop, Mobile: Fixed issue where file:// URLs would not be rendered correctly
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import InMemoryCache from './InMemoryCache';
|
||||
import noteStyle from './noteStyle';
|
||||
import { fileExtension } from './pathUtils';
|
||||
import setupLinkify from './MdToHtml/setupLinkify';
|
||||
import validateLinks from './MdToHtml/validateLinks';
|
||||
|
||||
const MarkdownIt = require('markdown-it');
|
||||
const md5 = require('md5');
|
||||
@@ -41,7 +43,6 @@ const rules: RendererRules = {
|
||||
mermaid: require('./MdToHtml/rules/mermaid').default,
|
||||
};
|
||||
|
||||
const setupLinkify = require('./MdToHtml/setupLinkify');
|
||||
const hljs = require('highlight.js');
|
||||
const uslug = require('uslug');
|
||||
const markdownItAnchor = require('markdown-it-anchor');
|
||||
@@ -517,6 +518,8 @@ export default class MdToHtml {
|
||||
}
|
||||
}
|
||||
|
||||
markdownIt.validateLink = validateLinks;
|
||||
|
||||
if (this.pluginEnabled('linkify')) setupLinkify(markdownIt);
|
||||
|
||||
const renderedBody = markdownIt.render(body, context);
|
||||
|
||||
Reference in New Issue
Block a user