fix(frontend): migrate TOC to @hedgedoc/markdown-it-plugins

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-12-02 19:50:55 +01:00
parent 60db7f4931
commit 7be4ef6e70
10 changed files with 36 additions and 46 deletions

View file

@ -8,7 +8,7 @@ import { TableOfContentsMarkdownExtension } from '../markdown-renderer/extension
import { useExtensionEventEmitterHandler } from '../markdown-renderer/hooks/use-extension-event-emitter'
import styles from './markdown-document.module.scss'
import { WidthBasedTableOfContents } from './width-based-table-of-contents'
import type { TocAst } from 'markdown-it-toc-done-right'
import type { TocAst } from '@hedgedoc/markdown-it-plugins'
import React, { useState } from 'react'
export interface DocumentTocSidebarProps {

View file

@ -6,7 +6,7 @@
import { ForkAwesomeIcon } from '../../common/fork-awesome/fork-awesome-icon'
import { TableOfContents } from '../../editor-page/table-of-contents/table-of-contents'
import styles from './markdown-toc-button.module.scss'
import type { TocAst } from 'markdown-it-toc-done-right'
import type { TocAst } from '@hedgedoc/markdown-it-plugins'
import React from 'react'
import { Dropdown } from 'react-bootstrap'

View file

@ -5,7 +5,7 @@
*/
import { TableOfContents } from '../editor-page/table-of-contents/table-of-contents'
import { TableOfContentsHoveringButton } from './markdown-toc-button/table-of-contents-hovering-button'
import type { TocAst } from 'markdown-it-toc-done-right'
import type { TocAst } from '@hedgedoc/markdown-it-plugins'
import React from 'react'
export interface DocumentExternalTocProps {