mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-26 03:33:58 -05:00
fix: Use more strict pdf id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
db93b33eb3
commit
bb90f31d0f
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ import markdownItRegex from 'markdown-it-regex'
|
||||||
import type MarkdownIt from 'markdown-it/lib'
|
import type MarkdownIt from 'markdown-it/lib'
|
||||||
import type { RegexOptions } from '../../../../external-types/markdown-it-regex/interface'
|
import type { RegexOptions } from '../../../../external-types/markdown-it-regex/interface'
|
||||||
|
|
||||||
export const legacyPdfRegex = /^{%pdf (\S*) *%}$/
|
export const legacyPdfRegex = /^{%pdf\s+(\S*)\s*%}$/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configure the given {@link MarkdownIt} to render legacy hedgedoc 1 pdf shortcodes as html links.
|
* Configure the given {@link MarkdownIt} to render legacy hedgedoc 1 pdf shortcodes as html links.
|
||||||
|
|
Loading…
Reference in a new issue