@thjxs/gc-markdown
TypeScript icon, indicating that this package has built-in type declarations

0.4.2 • Public • Published

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>

Dependents (0)

Package Sidebar

Install

npm i @thjxs/gc-markdown

Weekly Downloads

8

Version

0.4.2

License

MIT

Unpacked Size

17.4 kB

Total Files

14

Last publish

Collaborators

  • thjxs