tweak(web): adjust markdown heading margins (#393)

* tweak(web): components for markdown headings

Fixed nomenclature and set as default export.

* fix(ui): temp remove MarkdownComponents file

* fix(ui): return MarkdownComponents file
This commit is contained in:
Jellyton
2023-08-07 03:05:15 -07:00
committed by GitHub
parent fcb0a566d3
commit c8cca20c89
6 changed files with 27 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
import { Title } from '@mantine/core';
import { Components } from 'react-markdown';
const MarkdownComponents: Components = {
h1: ({ node, ...props }) => <Title {...props} />,
h2: ({ node, ...props }) => <Title order={2} {...props} />,
h3: ({ node, ...props }) => <Title order={3} {...props} />,
};
export default MarkdownComponents;