mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04:00
docs: consolidate docs (#2182)
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
8d46d7e39e
commit
ecffebc43c
307 changed files with 1474 additions and 487 deletions
|
@ -14,6 +14,12 @@ export interface SimpleMarkdownRendererProps {
|
|||
extensions: MarkdownExtension[]
|
||||
}
|
||||
|
||||
/**
|
||||
* A markdown renderer for tests.
|
||||
*
|
||||
* @param content The content to be rendered.
|
||||
* @param extensions The {@link MarkdownExtension MarkdownExtensions} to use for rendering.
|
||||
*/
|
||||
export const TestMarkdownRenderer: React.FC<SimpleMarkdownRendererProps> = ({ content, extensions }) => {
|
||||
const lines = useMemo(() => content.split('\n'), [content])
|
||||
const dom = useConvertMarkdownToReactDom(lines, extensions, true, false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue