Skip to content

thjxs/gc-markdown

Repository files navigation

markdown component

useage

import React from 'react'
import ReactDOM from 'react-dom'
import Markdown from '@thjxs/gc-markdown'

ReactDOM.render(
    <Markdown source={markdownText} />,
    document.getElementById('root')
)

Theme

support dark mode

import Markdown, {ThemeContext} from '@thjxs/gc-markdown'
...

<ThemeContext.Provider value='dark'>
    <Markdown source={markdownText}>
</ThemeContext.Provider>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages