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

Electron: Display URL for links

This commit is contained in:
Laurent Cozic 2018-01-09 19:26:46 +01:00
parent 2f13e689b9
commit 0b93515711

View File

@ -125,9 +125,9 @@ class MdToHtml {
renderOpenLink_(attrs, options) {
let href = this.getAttr_(attrs, 'href');
const title = this.getAttr_(attrs, 'title');
const text = this.getAttr_(attrs, 'text');
const isResourceUrl = Resource.isResourceUrl(href);
const title = isResourceUrl ? this.getAttr_(attrs, 'title') : href;
if (isResourceUrl && !this.supportsResourceLinks_) {
// In mobile, links to local resources, such as PDF, etc. currently aren't supported.