Refactor markdown rendering
This commit is contained in:
21
components/md-renderer/mdx-components/index.js
Normal file
21
components/md-renderer/mdx-components/index.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import P from './p';
|
||||
import { Headings } from './heading';
|
||||
import { Pre } from './pre';
|
||||
import BlockQuote from './blockquote';
|
||||
import { Table } from './table';
|
||||
import { IFrame } from './iframe';
|
||||
import { Img } from './img';
|
||||
import EnrichedLink from './a';
|
||||
|
||||
const MdxComponents = {
|
||||
p: P,
|
||||
...Headings,
|
||||
pre: Pre,
|
||||
blockquote: BlockQuote,
|
||||
a: EnrichedLink,
|
||||
table: Table,
|
||||
iframe: IFrame,
|
||||
img: Img,
|
||||
};
|
||||
|
||||
export default MdxComponents;
|
Reference in New Issue
Block a user