Skip to content

Commit

Permalink
fix(Renderer): Empty style string causes renderer to error with suppo…
Browse files Browse the repository at this point in the history
…rt removed in React 16
  • Loading branch information
HHogg committed Jan 23, 2018
1 parent 9a19dee commit 9e88337
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ const defaultComponents = {
};

const defaultRemarkableProps = {
align: (align) => ({
align: (align) => align ? ({
key: 'style',
value: align && { textAlign: align },
}),
value: { textAlign: align },
}) : false,
alt: true,
block: false,
content: false,
Expand Down

0 comments on commit 9e88337

Please sign in to comment.