var ArbitraryHtmlAndMath, Markdown, React, _, md;
React = require('react');
Markdown = require('markdown-it');
ArbitraryHtmlAndMath = require('openstax-react-components').ArbitraryHtmlAndMath;
_ = require('underscore');
md = new Markdown();
module.exports = React.createClass({displayName: "exports",
render: function() {
var html, htmlProps, text;
text = this.props.text;
htmlProps = _.pick(this.props, 'block', 'className');
html = md.render(text);
htmlProps.html = html;
return React.createElement(ArbitraryHtmlAndMath, React.__spread({}, htmlProps));
}
});
|