mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-24 18:56:32 -05:00
fix(html-to-react): fix toc regex
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
ffe48f2fd2
commit
41a1a53d08
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class Plugin {
|
||||||
public readonly START_LEVEL_ATTRIBUTE_NAME = 'startLevel'
|
public readonly START_LEVEL_ATTRIBUTE_NAME = 'startLevel'
|
||||||
public readonly END_LEVEL_ATTRIBUTE_NAME = 'endLevel'
|
public readonly END_LEVEL_ATTRIBUTE_NAME = 'endLevel'
|
||||||
|
|
||||||
private readonly TOC_PLACEHOLDER = /^\[\[toc(?::(\d+):(\d+))?]]|\[toc(?::(\d+):(\d+))?]$/i
|
private readonly TOC_PLACEHOLDER = /^(?:\[\[toc(?::(\d+):(\d+))?]]|\[toc(?::(\d+):(\d+))?])$/i
|
||||||
|
|
||||||
public constructor(md: MarkdownIt, tocOptions?: Partial<TocOptions>) {
|
public constructor(md: MarkdownIt, tocOptions?: Partial<TocOptions>) {
|
||||||
this.tocOptions = {
|
this.tocOptions = {
|
||||||
|
|
Loading…
Reference in a new issue