Skip to content

Commit c88aa26

Browse files
committed
fix backslash in alt-named quicklinks
1 parent 226904b commit c88aa26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

obsidian.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@ function preReplaceObsidianFileLinks(html, req) {
454454
if (fileName && fileName.includes("|")) {
455455
const parts = fileName.split("|");
456456
fileName = parts[0].trim();
457+
if (fileName.endsWith("\\")) {
458+
fileName = fileName.slice(0, -1);
459+
}
457460
alt = parts[1].trim();
458461
if (alt === "") {
459462
alt = null;

0 commit comments

Comments
 (0)