fix: correct docs

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-04-11 17:32:03 +02:00
parent af3c7848a9
commit a36d063da4
No known key found for this signature in database
GPG key ID: 42498463316F048B
2 changed files with 3 additions and 3 deletions

View file

@ -21,12 +21,13 @@ export interface MarkdownToReactProps {
}
/**
* Renders Markdown code.
* Renders Markdown code as DOM
*
* @param markdownContentLines The Markdown code lines that should be rendered
* @param additionalMarkdownExtensions A list of {@link MarkdownRendererExtension markdown extensions} that should be used
* @param newlinesAreBreaks Defines if the alternative break mode of markdown it should be used
* @param allowHtml Defines if html is allowed in markdown
* @see https://markdown-it.github.io/
*/
export const MarkdownToReact: React.FC<MarkdownToReactProps> = ({
markdownContentLines,

View file

@ -28,7 +28,7 @@ export interface MarkdownDocumentProps extends RendererProps {
}
/**
* Renders a markdown document and handles scrolling, yaml metadata and a floating table of contents.
* Renders a Markdown document and handles scrolling, yaml metadata and a floating table of contents.
*
* @param additionalOuterContainerClasses Additional classes given to the outer container directly
* @param additionalRendererClasses Additional classes given {@link DocumentMarkdownRenderer} directly
@ -40,7 +40,6 @@ export interface MarkdownDocumentProps extends RendererProps {
* @param onHeightChange The callback to call if the height of the document changes
* @param disableToc If the table of contents should be disabled.
* @param newLinesAreBreaks Defines if the provided markdown content should treat new lines as breaks
* @see https://markdown-it.github.io/
*/
export const MarkdownDocument: React.FC<MarkdownDocumentProps> = ({
additionalOuterContainerClasses,