mirror of
https://github.com/Ellpeck/ObsidianJustSharePlease.git
synced 2024-11-26 20:28:34 +01:00
marks are already replaced in slugify
This commit is contained in:
parent
fb6094a1b8
commit
dcfe7e6f3d
1 changed files with 1 additions and 2 deletions
|
@ -48,8 +48,7 @@
|
||||||
ariaHidden: true
|
ariaHidden: true
|
||||||
}),
|
}),
|
||||||
// prepend current file id to the anchor permalink
|
// prepend current file id to the anchor permalink
|
||||||
slugify: s => `${getId() ?? ""}-${encodeURIComponent(String(s).trim().toLowerCase().normalize("NFKD").replace(/\p{M}/g, "").replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "")
|
slugify: s => `${getId() ?? ""}-${encodeURIComponent(String(s).trim().toLowerCase().normalize("NFKD").replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""))}`
|
||||||
)}`
|
|
||||||
});
|
});
|
||||||
md.use(markdownitFootnote);
|
md.use(markdownitFootnote);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue