1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-27 23:28:38 +02:00

All: Fixed link issue following last update

This commit is contained in:
Laurent Cozic
2019-09-10 09:25:58 +01:00
parent 45a820bb35
commit e03ef78049
3 changed files with 32 additions and 4 deletions

View File

@ -8,7 +8,7 @@ function installRule(markdownIt, mdOptions, ruleOptions) {
const token = tokens[idx];
let href = utils.getAttr(token.attrs, 'href');
const resourceHrefInfo = urlUtils.parseResourceUrl(href);
const isResourceUrl = !!resourceHrefInfo.itemId;
const isResourceUrl = !!resourceHrefInfo;
const title = isResourceUrl ? utils.getAttr(token.attrs, 'title') : href;
let resourceIdAttr = '';