mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-03-22 18:34:21 +00:00
fix: Use more strict slideshare id regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
bb90f31d0f
commit
8274fe0dad
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 { RegexOptions } from '../../../../external-types/markdown-it-regex/interface'
|
||||
|
||||
export const legacySlideshareRegex = /^{%slideshare (\w+\/[\w-]+) ?%}$/
|
||||
export const legacySlideshareRegex = /^{%slideshare\s+(\w+\/[\w-]+)\s*%}$/
|
||||
|
||||
/**
|
||||
* Configure the given {@link MarkdownIt} to render legacy hedgedoc 1 slideshare shortcodes as HTML links.
|
||||
|
|
Loading…
Reference in a new issue