mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-27 21:02:48 +00:00
Add spaces to highlighted code regex
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
312c86e702
commit
729144eca3
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
import MarkdownIt from 'markdown-it/lib'
|
||||
|
||||
const highlightRegex = /^(\w*)(=(\d*|\+))?(!?)$/
|
||||
const highlightRegex = /^ *(\w*)(=(\d*|\+))?(!?)$/
|
||||
|
||||
export const highlightedCode: MarkdownIt.PluginSimple = (md: MarkdownIt) => {
|
||||
md.core.ruler.push('highlighted-code', (state) => {
|
||||
|
|
Loading…
Reference in a new issue