diff --git a/components/Code.js b/components/Code.js index 853fc02e..15f39493 100644 --- a/components/Code.js +++ b/components/Code.js @@ -11,7 +11,7 @@ Prism.languages.markdoc = { pattern: /{%(.|\n)*?%}/i, inside: { tagType: { - pattern: /^({%\s*\/?)(\w*|-)*\b/i, + pattern: /^({%\s*\/?)(\w|-)*\b/i, lookbehind: true }, id: /#(\w|-)*\b/,