mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 07:26:02 +01:00
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:
10
web/src/config/MarkdownComponents.tsx
Normal file
10
web/src/config/MarkdownComponents.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user