mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-30 05:55:48 +08:00
Fix issues running the website locally on windows with npm3
This commit is contained in:
@@ -811,13 +811,16 @@ Parser.prototype.tok = function() {
|
||||
return React.DOM.hr(null, null);
|
||||
}
|
||||
case 'heading': {
|
||||
return Header(
|
||||
{level: this.token.depth, toSlug: this.token.text},
|
||||
this.inline.output(this.token.text)
|
||||
return (
|
||||
<Header
|
||||
level={this.token.depth}
|
||||
toSlug={this.token.text}>
|
||||
{this.inline.output(this.token.text)}
|
||||
</Header>
|
||||
);
|
||||
}
|
||||
case 'code': {
|
||||
return Prism(null, this.token.text);
|
||||
return <Prism>{this.token.text}</Prism>;
|
||||
}
|
||||
case 'table': {
|
||||
var table = []
|
||||
|
||||
Reference in New Issue
Block a user