Skip to content

Commit

Permalink
fix backslash in alt-named quicklinks
Browse files Browse the repository at this point in the history
  • Loading branch information
guFalcon committed Nov 17, 2024
1 parent 226904b commit c88aa26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions obsidian.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@ function preReplaceObsidianFileLinks(html, req) {
if (fileName && fileName.includes("|")) {
const parts = fileName.split("|");
fileName = parts[0].trim();
if (fileName.endsWith("\\")) {
fileName = fileName.slice(0, -1);
}
alt = parts[1].trim();
if (alt === "") {
alt = null;
Expand Down

0 comments on commit c88aa26

Please sign in to comment.