Skip to content

Commit e27feee

Browse files
committed
update inline metadata regex
Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
1 parent 694cf95 commit e27feee

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

plugin/awesoMD/awesoMD.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/awesoMD/awesoMD.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin/awesoMD/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const HTML_ESCAPE_MAP = {
3030
}
3131

3232
const yamlRegex = /```(yaml|yml)\n([\s\S]*?)```(\n[\s\S]*)?/g
33-
const headingWithMetadataRegex = /^#+\s.*::\w+: *\w+.*$/m
33+
const headingWithMetadataRegex = /^#+\s.*::\w+:\s*.*$/m
3434
const metadataRegex = /::(\w+):([^::\n]*)/g
3535
const alertBlockRegex = /^\r*>\s*(\[!(\w+)\]).*\n(\s*\s*>.*\n?)*/gm
3636
const alertTypeRegex = /^\r*>*\s*(\[!(\w+)\])/gm

0 commit comments

Comments
 (0)