Skip to content

Commit

Permalink
Fix default render option
Browse files Browse the repository at this point in the history
This should make it compatible with newer React versions again.

Closes #15
  • Loading branch information
mxstbr committed Oct 24, 2017
1 parent 88af0f5 commit 3df769c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,9 @@ function defaultGetSyntax(block) {
@return {React.Element}
*/
function defaultRender(props) {
props = extend({}, props, {
className: 'prism-token token ' + props.type
});

return React.createElement(
"span",
props,
{ className: 'prism-token token ' + props.type },
props.children
);
}
Expand Down

0 comments on commit 3df769c

Please sign in to comment.