1- import SectionHeading from './renderers/SectionHeading'
2- import Code from './renderers/Code '
1+ import SectionHeading , { SectionHeadingProps } from './renderers/SectionHeading'
2+ import SourceCode , { SourceCodeProps } from './renderers/SourceCode '
33import InlineCode from './renderers/InlineCode'
44import Blockquote from './renderers/Blockquote'
55import RuleCard from './renderers/RuleCard'
@@ -25,23 +25,30 @@ import {
2525 AlertProps ,
2626 Alert ,
2727 InlineAlertProps ,
28+ ParagraphProps ,
29+ LinkProps ,
30+ StrongProps ,
31+ OrderedListProps ,
32+ UnorderedListProps ,
33+ ListItemProps ,
34+ CodeProps ,
2835} from 'evergreen-ui'
2936
3037const componentMapping = {
31- h1 : ( props : any ) => < SectionHeading size = { 800 } { ...props } /> ,
32- h2 : ( props : any ) => < SectionHeading size = { 700 } { ...props } /> ,
33- h3 : ( props : any ) => < SectionHeading size = { 600 } { ...props } /> ,
34- h4 : ( props : any ) => < SectionHeading size = { 500 } { ...props } /> ,
35- h5 : ( props : any ) => < SectionHeading size = { 300 } { ...props } /> ,
36- h6 : ( props : any ) => < SectionHeading size = { 200 } { ...props } /> ,
37- code : ( props : { className : string ; metastring : string ; children : any } ) => < Code { ...props } /> ,
38- p : ( props : any ) => < Paragraph marginBottom = { majorScale ( 3 ) } { ...props } /> ,
39- a : ( props : any ) => < EvergreenLink { ...props } /> ,
40- strong : ( props : any ) => < Strong { ...props } /> ,
41- ol : ( props : any ) => < Ol { ...props } /> ,
42- ul : ( props : any ) => < Ul { ...props } marginTop = "-16px" /> ,
43- li : ( props : any ) => < Li { ...props } /> ,
44- inlineCode : ( props : any ) => < InlineCode { ...props } /> ,
38+ h1 : ( props : SectionHeadingProps ) => < SectionHeading size = { 800 } { ...props } /> ,
39+ h2 : ( props : SectionHeadingProps ) => < SectionHeading size = { 700 } { ...props } /> ,
40+ h3 : ( props : SectionHeadingProps ) => < SectionHeading size = { 600 } { ...props } /> ,
41+ h4 : ( props : SectionHeadingProps ) => < SectionHeading size = { 500 } { ...props } /> ,
42+ h5 : ( props : SectionHeadingProps ) => < SectionHeading size = { 300 } { ...props } /> ,
43+ h6 : ( props : SectionHeadingProps ) => < SectionHeading size = { 200 } { ...props } /> ,
44+ code : ( props : SourceCodeProps ) => < SourceCode { ...props } /> ,
45+ p : ( props : ParagraphProps ) => < Paragraph marginBottom = { majorScale ( 3 ) } { ...props } /> ,
46+ a : ( props : LinkProps ) => < EvergreenLink { ...props } /> ,
47+ strong : ( props : StrongProps ) => < Strong { ...props } /> ,
48+ ol : ( props : OrderedListProps ) => < Ol { ...props } /> ,
49+ ul : ( props : UnorderedListProps ) => < Ul { ...props } marginTop = "-16px" /> ,
50+ li : ( props : ListItemProps ) => < Li { ...props } /> ,
51+ inlineCode : ( props : CodeProps ) => < InlineCode { ...props } /> ,
4552 Alert : ( props : AlertProps ) => < Alert { ...props } /> ,
4653 InlineAlert : ( props : InlineAlertProps ) => < InlineAlert marginBottom = { majorScale ( 3 ) } { ...props } /> ,
4754 Pane : ( props : PaneProps ) => < Pane { ...props } /> ,
0 commit comments