mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
fix(frontend): migrate TOC to @hedgedoc/markdown-it-plugins
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
60db7f4931
commit
7be4ef6e70
10 changed files with 36 additions and 46 deletions
|
@ -6,7 +6,7 @@
|
|||
import { MarkdownRendererExtension } from '../../../components/markdown-renderer/extensions/base/markdown-renderer-extension'
|
||||
import type { ComponentReplacer } from '../../../components/markdown-renderer/replace-components/component-replacer'
|
||||
import { TaskListReplacer } from './task-list-replacer'
|
||||
import { tasksLists } from '@hedgedoc/markdown-it-plugins'
|
||||
import { taskLists } from '@hedgedoc/markdown-it-plugins'
|
||||
import type MarkdownIt from 'markdown-it'
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,7 @@ import type MarkdownIt from 'markdown-it'
|
|||
*/
|
||||
export class TaskListMarkdownExtension extends MarkdownRendererExtension {
|
||||
public configureMarkdownIt(markdownIt: MarkdownIt): void {
|
||||
tasksLists(markdownIt, {
|
||||
taskLists(markdownIt, {
|
||||
enabled: true,
|
||||
label: true,
|
||||
lineNumber: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue