Code coverage report for src/components/markdown.cjsx

Statements: 100% (13 / 13)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (13 / 13)      Ignored: none     

All files » src/components/ » markdown.cjsx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24                      
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));
  }
});