Skip to content

Commit 265f153

Browse files
committed
fix regex for code/noformat macro
1 parent 293be4f commit 265f153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/markupParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export function parseMarkup(sourceUri: vscode.Uri, sourceText: string) {
143143
return `<pre><code style='font-family: ${MONOSPACE_FONT_FAMILY}'>${m2.replace(/</gi, '&lt;')}</code></pre>`;
144144
});
145145

146-
const code_re = /\{(noformat)|(code)[^}]*\}/;
146+
const code_re = /\{(noformat|code)[^}]*\}/;
147147
const code_match = tag.match(code_re);
148148
if (code_match) {
149149
if (! codeTagFlag) {

0 commit comments

Comments
 (0)