Skip to content

Commit

Permalink
Fixing the markdown css bug
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed Jan 5, 2017
1 parent 5ce7d85 commit 0b72290
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ export default React.createClass({
${value}
}`;
lessC.render(lessSrc, { compress: true }, (e, output) => {
const parts = { markdown_less: value };
if (output) {
this.props.onChange({ markdown_css: output.css });
parts.markdown_css = output.css;
}
this.props.onChange(parts);
});
this.props.onChange({ markdown_less: value });
},

render() {
Expand Down

0 comments on commit 0b72290

Please sign in to comment.