Fix not all id lines being removed
This commit is contained in:
parent
d6254f4907
commit
71a0fe3493
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,8 @@ function toSlug(string) {
|
|||
(_, id) => blockRefs[id]);
|
||||
// Remove id:: lines
|
||||
data = data.replaceAll(
|
||||
/- (.*)\n\s*id:: (.*)/gm,
|
||||
'- <span id="$2">$1</span>');
|
||||
/(.*)\n\s*id:: (.*)/gm,
|
||||
'<span id="$2">$1</span>');
|
||||
// Fix internal links with spaces not getting mapped
|
||||
data = data.replaceAll(
|
||||
/\[\[([^\[\]]*)\]\]/g,
|
||||
|
|
Loading…
Reference in a new issue