Commit bc38940
committed
fix: decode URI-encoded paths when opening local files
Markdown-it percent-encodes non-ASCII characters in link hrefs (e.g.
Chinese/Japanese/Korean filenames). The openFile handler passed these
encoded paths directly to Utils.joinPath, resulting in file-not-found
errors.
Apply decodeURIComponent before constructing the file URI.
Fixes markmap#731 parent 7234f1b commit bc38940
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
| 322 | + | |
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
| |||
0 commit comments