lib/markdown.js
function markdownToJSX(markdown = '') {
  markdown = (0, _trim2.default)(markdown);

  return markdown ? (0, _jsx.htmlToJSX)(markdownToUnwrappedHTML(markdown)) : [];
}
function markdownToJSX(markdown = '') {
  markdown = (0, _trim2.default)(markdown);

  return markdown ? (0, _jsx.htmlToJSX)(markdownToUnwrappedHTML(markdown)) : [];
}
function markdownToJSX ( markdown = '' ) { markdown = ( 0 , _trim2 . default ) ( markdown ) ; return markdown ? ( 0 , _jsx . htmlToJSX ) ( markdownToUnwrappedHTML ( markdown ) ) : [ ] ; }
Converts an arbitrary Markdown string to an array of React Elements

@memberof module:markdown
@method markdownToJSX
@param {string} [markdown=""] - an arbitrary Markdown string
@return {Array<ReactElement>} an array of React Elements
@example
import {markdownToJSX} from 'webcompiler';
// or - import {markdownToJSX} from 'webcompiler/lib/markdown';
// or - var markdownToJSX = require('webcompiler').markdownToJSX;
// or - var markdownToJSX = require('webcompiler/lib/markdown').markdownToJSX;

<div>{markdownToJSX('# Hello world!')}</div>
Converts an arbitrary Markdown string to an array of React Elements