How to use the markdown-to-jsx function in markdown-to-jsx

To help you get started, we’ve selected a few markdown-to-jsx examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adamarthurryan / dubdiff / src / common / components / ShowMarkdown.js View on Github external
const ShowMarkdown = (props) => {
  return <div>
    {
        props.text
          ? markdownCompiler(props.text)
          : props.diff
            ? markdownCompiler(diffToHtml(props.diff))
            : null
      }
  </div>
}
github adamarthurryan / dubdiff / src / common / components / ShowMarkdown.js View on Github external
const ShowMarkdown = (props) =&gt; {
  return <div>
    {
        props.text
          ? markdownCompiler(props.text)
          : props.diff
            ? markdownCompiler(diffToHtml(props.diff))
            : null
      }
  </div>
}

markdown-to-jsx

Convert markdown to JSX with ease for React and React-like projects. Super lightweight and highly configurable.

MIT
Latest version published 3 days ago

Package Health Score

92 / 100
Full package analysis

Popular markdown-to-jsx functions