mirror of
https://github.com/laurent22/joplin.git
synced 2025-03-26 21:12:59 +02:00
Desktop: Fix syntax of imported resources when importing ENEX as HTML
This commit is contained in:
parent
0ec3d6ca9d
commit
db2282a351
@ -1,5 +1,5 @@
|
||||
<en-note>
|
||||
<div><a href="joplin://21ca2b948f222a38802940ec7e2e5de3" hash="21ca2b948f222a38802940ec7e2e5de3" type="application/pdf" style="cursor:pointer;" alt="attachment-1">attachment-1</a></div>
|
||||
<div><a href=":/21ca2b948f222a38802940ec7e2e5de3" hash="21ca2b948f222a38802940ec7e2e5de3" type="application/pdf" style="cursor:pointer;" alt="attachment-1">attachment-1</a></div>
|
||||
<div>
|
||||
<br>
|
||||
</div>
|
||||
|
@ -47,7 +47,7 @@ const attributesToStr = (attributes) =>
|
||||
|
||||
const attachmentElement = ({ src, attributes, id }) =>
|
||||
[
|
||||
`<a href='joplin://${id}' ${attributesToStr(attributes)}>`,
|
||||
`<a href=':/${id}' ${attributesToStr(attributes)}>`,
|
||||
` ${attributes.alt || src}`,
|
||||
'</a>',
|
||||
].join('');
|
||||
|
Loading…
x
Reference in New Issue
Block a user