-
-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from nteract/bump-and-lint
Bump package versions, handle linting
- Loading branch information
Showing
7 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import React from 'react'; | ||
import katex from 'katex'; | ||
|
||
export default class LaTeXDisplay extends React.Component { | ||
static propTypes = { | ||
data: React.PropTypes.string, | ||
} | ||
|
||
render() { | ||
return ( | ||
<div | ||
dangerouslySetInnerHTML={{ // eslint-disable-line | ||
__html: katex.renderToString(this.props.data), | ||
}} | ||
/> | ||
); | ||
} | ||
export default function LaTeXDisplay(props) { | ||
return ( | ||
<div | ||
dangerouslySetInnerHTML={{ // eslint-disable-line | ||
__html: katex.renderToString(props.data), | ||
}} | ||
/> | ||
); | ||
} | ||
|
||
LaTeXDisplay.propTypes = { | ||
data: React.PropTypes.string, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters