1.0.2 • Published 3 years ago

remax-markdown v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Remax Markdown

Renders Markdown as pure React components, based on react-markdown@4.3.1, support Remax

Installing

npm install --save remax-markdown
# or
yarn add remax-markdown

Basic usage

import * as React from "react";
import RemaxMarkdown from "remax-markdown";
import text from "./text";

export default () => {
  const source = `# Title\nContent`;
  return <RemaxMarkdown source={source} />;
};

APIs

APIs see React Markdown's Documentation

Code highlight

Implement your render by replace default code render. Default render is at src/renderers/code.jsx

Preview in WeChat

20210430150544.jpg