mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-04 07:42:58 -05:00
2abe40ef1d
* Update dependency eslint-plugin-import to v2.25.2 Signed-off-by: Renovate Bot <bot@renovateapp.com> Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Make type imports more explicit Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Enforce use of type imports Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
22 lines
723 B
TypeScript
22 lines
723 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import type { TocAst } from 'markdown-it-toc-done-right'
|
|
import type { ImageClickHandler } from './replace-components/image/image-replacer'
|
|
import type { Ref } from 'react'
|
|
|
|
export interface CommonMarkdownRendererProps {
|
|
onFirstHeadingChange?: (firstHeading: string | undefined) => void
|
|
onTaskCheckedChange?: (lineInMarkdown: number, checked: boolean) => void
|
|
onTocChange?: (ast?: TocAst) => void
|
|
baseUrl?: string
|
|
onImageClick?: ImageClickHandler
|
|
outerContainerRef?: Ref<HTMLDivElement>
|
|
useAlternativeBreaks?: boolean
|
|
lineOffset?: number
|
|
className?: string
|
|
content: string
|
|
}
|