fixed url encoded image links not being converted correctly

closes #4
This commit is contained in:
Ell 2023-10-26 11:44:54 +02:00
parent 6ca424eb47
commit 5ae82374ff
2 changed files with 8 additions and 1 deletions

View file

@ -242,7 +242,7 @@ export default class JustSharePleasePlugin extends Plugin {
let match: RegExpExecArray;
while ((match = attachments.exec(text)) != null) {
let alt = match[1] ?? "";
let url = match[2] ?? match[3];
let url = decodeURI(match[2] ?? match[3]);
if (url.startsWith("http"))
continue;
try {

View file

@ -61,6 +61,13 @@ wikilink image!
![[Pasted image 20230816130420.png]]
image but with spaces in the name!
![](Pasted%20image%2020230816130420.png)
online image!
![](https://ellpeck.de/res/me.jpeg)
nice
[^1]: Normal footnote!