react-hyphen
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -47,2 +47,3 @@ 'use strict'; | ||
language = _ref.language; | ||
handleDangerouslySetInnerHTML(children, language); | ||
var childrenCount = React.Children.count(children); | ||
@@ -78,2 +79,10 @@ | ||
function handleDangerouslySetInnerHTML(children, language) { | ||
if (children && children.props && children.props.dangerouslySetInnerHTML) { | ||
children.props.dangerouslySetInnerHTML.__html = hyphenated.hyphenated(children.props.dangerouslySetInnerHTML.__html, { | ||
language: language | ||
}); | ||
} | ||
} | ||
module.exports = Hyphenated; |
{ | ||
"name": "react-hyphen", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "hyphenate", |
7170
68