diff --git a/src/node/markdown/plugins/snippet.ts b/src/node/markdown/plugins/snippet.ts index 5410c3384c99..3d2f7cf66924 100644 --- a/src/node/markdown/plugins/snippet.ts +++ b/src/node/markdown/plugins/snippet.ts @@ -109,7 +109,7 @@ export const snippetPlugin = (md: MarkdownIt, srcDir: string) => { * captures: ['/path/to/file.extension', 'extension', '#region', '{meta}'] */ const rawPathRegexp = - /^(.+(?:\.([a-z]+)))(?:(#[\w-]+))?(?: ?(?:{(\d+(?:[,-]\d+)*)? ?(\S+)?}))?$/ + /^(.+(?:\.([a-z0-9]+)))(?:(#[\w-]+))?(?: ?(?:{(\d+(?:[,-]\d+)*)? ?(\S+)?}))?$/ const rawPath = state.src .slice(start, end)