From 4eeb699bcae82f3f2088aeaf89fcc788218a433f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lindstr=C3=B8m?= Date: Thu, 24 Mar 2016 22:59:08 +0100 Subject: [PATCH] Allow custom properties on container element --- src/react-markdown.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/react-markdown.js b/src/react-markdown.js index 60a6b86f..11970f53 100644 --- a/src/react-markdown.js +++ b/src/react-markdown.js @@ -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, @@ -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 || '');