mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05: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'
|
import MarkdownIt from 'markdown-it/lib'
|
||||||
|
|
||||||
const highlightRegex = /^(\w*)(=(\d*|\+))?(!?)$/
|
const highlightRegex = /^ *(\w*)(=(\d*|\+))?(!?)$/
|
||||||
|
|
||||||
export const highlightedCode: MarkdownIt.PluginSimple = (md: MarkdownIt) => {
|
export const highlightedCode: MarkdownIt.PluginSimple = (md: MarkdownIt) => {
|
||||||
md.core.ruler.push('highlighted-code', (state) => {
|
md.core.ruler.push('highlighted-code', (state) => {
|
||||||
|
|
Loading…
Reference in a new issue