You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-06 09:19:22 +02:00
Desktop: Resolves #3333: Improved escaping of Markdown titles in links
This commit is contained in:
@@ -207,11 +207,11 @@ class Resource extends BaseItem {
|
||||
const lines = [];
|
||||
if (Resource.isSupportedImageMimeType(resource.mime)) {
|
||||
lines.push('`);
|
||||
} else {
|
||||
lines.push('[');
|
||||
lines.push(markdownUtils.escapeLinkText(tagAlt));
|
||||
lines.push(markdownUtils.escapeTitleText(tagAlt));
|
||||
lines.push(`](:/${resource.id})`);
|
||||
}
|
||||
return lines.join('');
|
||||
|
||||
Reference in New Issue
Block a user