You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
Desktop, CLI: Fixes #1723: Import Evernote audio files correctly
This commit is contained in:
@@ -321,16 +321,18 @@ function tagAttributeToMdText(attr) {
|
||||
function addResourceTag(lines, resource, alt = "") {
|
||||
// Note: refactor to use Resource.markdownTag
|
||||
|
||||
let tagAlt = alt == "" ? resource.alt : alt;
|
||||
if (!tagAlt) tagAlt = '';
|
||||
tagAlt = tagAttributeToMdText(tagAlt);
|
||||
if (!alt) alt = resource.title;
|
||||
if (!alt) alt = resource.filename;
|
||||
if (!alt) alt = '';
|
||||
|
||||
alt = tagAttributeToMdText(alt);
|
||||
if (isImageMimeType(resource.mime)) {
|
||||
lines.push("");
|
||||
} else {
|
||||
lines.push("[");
|
||||
lines.push(tagAlt);
|
||||
lines.push(alt);
|
||||
lines.push("](:/" + resource.id + ")");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user