mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-04 16:15:33 -05:00
23 lines
708 B
TypeScript
23 lines
708 B
TypeScript
|
/*
|
||
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||
|
*
|
||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||
|
*/
|
||
|
|
||
|
import { TocAst } from 'markdown-it-toc-done-right'
|
||
|
import { ImageClickHandler } from './replace-components/image/image-replacer'
|
||
|
import { 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
|
||
|
}
|