Skip to content

Commit

Permalink
Allow custom properties on container element
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslindstrom committed Mar 24, 2016
1 parent bc5ce1f commit 4eeb699
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/react-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var ReactMarkdown = React.createClass({

propTypes: {
className: propTypes.string,
props: propTypes.object,
source: propTypes.string.isRequired,
containerTagName: propTypes.string,
sourcePos: propTypes.bool,
Expand All @@ -34,7 +35,7 @@ var ReactMarkdown = React.createClass({
},

render: function() {
var containerProps = {};
var containerProps = this.props.props || {};
var renderer = new ReactRenderer(this.props);
var ast = parser.parse(this.props.source || '');

Expand Down

0 comments on commit 4eeb699

Please sign in to comment.