mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
feat(mdx): create mapping for components
This commit is contained in:
12
src/mdx-components.ts
Normal file
12
src/mdx-components.ts
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user