Fix not all id lines being removed

This commit is contained in:
thepaperpilot 2024-06-01 23:54:34 -05:00
parent d6254f4907
commit 71a0fe3493

View file

@ -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,