0.0.3 • Published 3 years ago

ink-mdx v0.0.3

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

ink-mdx test

Markdown component for Ink. Uses MDX for markdown rendering.

Install

$ npm install ink-mdx

Usage

import React from 'react';
import {render} from 'ink';
import MDX from 'ink-mdx';

render(<MDX content="# Hello" />);

Props

content

Type: string

Markdown content. See MDX documentation for available components.

Supported components

  • p
  • h1
  • h2
  • h3
  • h4
  • h5
  • h6
  • blockquote
  • ul
  • ol
  • li
  • table
  • thead
  • tbody
  • tr
  • td/th
  • code
  • inlineCode
  • pre
  • em
  • strong
  • del
  • hr
  • a
  • img