@lukekaalim/act-markdown
v2.0.2
Published
Convert markdown text to act nodes! Uses `remark` to parse text into `mdast`, and then provides an function to turn `mdast` nodes into act nodes.
Readme
@lukekaalim/act-markdown
Convert markdown text to act nodes! Uses remark to
parse text into mdast, and then provides an function
to turn mdast nodes into act nodes.
Quickstart
Install via npm.
npm install @lukekaalim/act-markdownAnd then use the Markdown component
to render the text.
import { Markdown } from '@lukekaalim/act-markdown';
const myMarkdownText = `
# Heading
Some text
`;
const MyApp = () => {
return <Markdown text={myMarkdownText} />
};Features
Support for the following features builtin:
- [x] MDX support
- [x] Github-flavored markdown
- [ ] Frontmatter
