feat(mdx): create mapping for components

This commit is contained in:
Stefan Imhoff
2023-04-04 17:42:02 +02:00
parent 09921b729f
commit bf67378660

12
src/mdx-components.ts Normal file
View File

@@ -0,0 +1,12 @@
import { Headline, Subheadline, Subsubheadline, Text, TextLink, Title } from './components';
export const mapping = {
a: TextLink,
h1: Title,
h2: Headline,
h3: Subheadline,
h4: Subsubheadline,
h5: Subsubheadline,
h6: Subsubheadline,
p: Text,
};