Render markdown text using Ink
$ npm install ink-markdown
$ yarn add ink-markdown
import React from 'react';
import { render } from 'ink';
import Markdown from 'ink-markdown';
import dedent from 'dedent';
const text = dedent`
# Hello
This is **markdown** printed in the \`terminal\`
`;
render(<Markdown>{text}</Markdown>);
Props are passed as options to
marked-terminal
.
MIT © Cameron Hunter