2021-10-04 06:50:39 -04:00
|
|
|
/*
|
2022-09-02 11:07:50 -04:00
|
|
|
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
2021-10-04 06:50:39 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
2021-10-17 12:45:58 -04:00
|
|
|
import type { Ref } from 'react'
|
2021-10-04 06:50:39 -04:00
|
|
|
|
|
|
|
export interface CommonMarkdownRendererProps {
|
|
|
|
onFirstHeadingChange?: (firstHeading: string | undefined) => void
|
2021-11-15 11:04:49 -05:00
|
|
|
baseUrl: string
|
2021-10-04 06:50:39 -04:00
|
|
|
outerContainerRef?: Ref<HTMLDivElement>
|
2021-11-15 11:04:49 -05:00
|
|
|
newlinesAreBreaks?: boolean
|
2021-10-04 06:50:39 -04:00
|
|
|
lineOffset?: number
|
|
|
|
className?: string
|
2021-12-14 04:16:25 -05:00
|
|
|
markdownContentLines: string[]
|
2021-10-04 06:50:39 -04:00
|
|
|
}
|