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

2.0.0 • Public • Published

ink-markdown Actions Status

Render markdown text using Ink

Screenshot of ink-markdown

Install

$ npm install ink-markdown
$ yarn add ink-markdown

Usage

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>);

API

<Markdown>

Props are passed as options to marked-terminal.

License

MIT © Cameron Hunter

Package Sidebar

Install

npm i @jescalan/ink-markdown

Weekly Downloads

2,014

Version

2.0.0

License

MIT

Unpacked Size

2.79 kB

Total Files

4

Last publish

Collaborators

  • jescalan