mirror of https://github.com/laurent22/joplin.git
Electron: Display URL for links
parent
2f13e689b9
commit
0b93515711
|
@ -125,9 +125,9 @@ class MdToHtml {
|
||||||
|
|
||||||
renderOpenLink_(attrs, options) {
|
renderOpenLink_(attrs, options) {
|
||||||
let href = this.getAttr_(attrs, 'href');
|
let href = this.getAttr_(attrs, 'href');
|
||||||
const title = this.getAttr_(attrs, 'title');
|
|
||||||
const text = this.getAttr_(attrs, 'text');
|
const text = this.getAttr_(attrs, 'text');
|
||||||
const isResourceUrl = Resource.isResourceUrl(href);
|
const isResourceUrl = Resource.isResourceUrl(href);
|
||||||
|
const title = isResourceUrl ? this.getAttr_(attrs, 'title') : href;
|
||||||
|
|
||||||
if (isResourceUrl && !this.supportsResourceLinks_) {
|
if (isResourceUrl && !this.supportsResourceLinks_) {
|
||||||
// In mobile, links to local resources, such as PDF, etc. currently aren't supported.
|
// In mobile, links to local resources, such as PDF, etc. currently aren't supported.
|
||||||
|
|
Loading…
Reference in New Issue