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]);
|
(_, id) => blockRefs[id]);
|
||||||
// Remove id:: lines
|
// Remove id:: lines
|
||||||
data = data.replaceAll(
|
data = data.replaceAll(
|
||||||
/- (.*)\n\s*id:: (.*)/gm,
|
/(.*)\n\s*id:: (.*)/gm,
|
||||||
'- <span id="$2">$1</span>');
|
'<span id="$2">$1</span>');
|
||||||
// Fix internal links with spaces not getting mapped
|
// Fix internal links with spaces not getting mapped
|
||||||
data = data.replaceAll(
|
data = data.replaceAll(
|
||||||
/\[\[([^\[\]]*)\]\]/g,
|
/\[\[([^\[\]]*)\]\]/g,
|
||||||
|
|
Loading…
Add table
Reference in a new issue