-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update highlightjs to include at least 9.3.0, which contained some changes which were incorporated in lowlight’s core. The new `skip` option (highlightjs/highlight.js@517d2da) is not yet included. Closes GH-1.
- Loading branch information
Showing
7 changed files
with
25 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,6 @@ | ||
var X = React.createClass({ | ||
render: function() { | ||
var c = this.map(c => <Comment comment={c} key={c.id} />); | ||
return ( | ||
<div className='comments'> | ||
{c} | ||
</div> | ||
); | ||
}, | ||
foo: function() {} | ||
}); | ||
|
||
var Comment = React.createClass({ | ||
render: function() { | ||
var comment = this.props.comment; | ||
return ( | ||
<li>{comment}</li> | ||
); | ||
} | ||
foo: function() {} | ||
}); | ||
var jsx = <node/>; | ||
var jsx = <node><child/></node>; | ||
var jsx = <node>...<child>...</child></node>; | ||
var jsx = <div><br /></div>; | ||
var x = 5; | ||
return (<node attr="value"></node>); |
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,21 +1,6 @@ | ||
<span class="hljs-keyword">var</span> X = React.createClass({ | ||
render: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{ | ||
<span class="hljs-keyword">var</span> c = <span class="hljs-keyword">this</span>.map(c => <span class="xml"><span class="hljs-tag"><<span class="hljs-name">Comment</span> <span class="hljs-attr">comment</span>=<span class="hljs-string">{c}</span> <span class="hljs-attr">key</span>=<span class="hljs-string">{c.id}</span> /></span>)</span>; | ||
<span class="hljs-keyword">return</span> ( | ||
<span class="xml"><span class="hljs-tag"><<span class="hljs-name">div</span> <span class="hljs-attr">className</span>=<span class="hljs-string">'comments'</span>></span> | ||
{c} | ||
<span class="hljs-tag"></<span class="hljs-name">div</span>></span> | ||
)</span>; | ||
}, | ||
foo: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{} | ||
}); | ||
|
||
<span class="hljs-keyword">var</span> Comment = React.createClass({ | ||
render: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{ | ||
<span class="hljs-keyword">var</span> comment = <span class="hljs-keyword">this</span>.props.comment; | ||
<span class="hljs-keyword">return</span> ( | ||
<span class="xml"><span class="hljs-tag"><<span class="hljs-name">li</span>></span>{comment}<span class="hljs-tag"></<span class="hljs-name">li</span>></span> | ||
)</span>; | ||
} | ||
foo: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{} | ||
}); | ||
<span class="hljs-keyword">var</span> jsx = <span class="xml"><span class="hljs-tag"><<span class="hljs-name">node</span>/></span></span>; | ||
<span class="hljs-keyword">var</span> jsx = <span class="xml"><span class="hljs-tag"><<span class="hljs-name">node</span>></span></span><child/><span class="xml"><span class="hljs-tag"></<span class="hljs-name">node</span>></span></span>; | ||
<span class="hljs-keyword">var</span> jsx = <span class="xml"><span class="hljs-tag"><<span class="hljs-name">node</span>></span>...</span><child>...</child><span class="xml"><span class="hljs-tag"></<span class="hljs-name">node</span>></span></span>; | ||
<span class="hljs-keyword">var</span> jsx = <span class="xml"><span class="hljs-tag"><<span class="hljs-name">div</span>></span></span><br /><span class="xml"><span class="hljs-tag"></<span class="hljs-name">div</span>></span></span>; | ||
<span class="hljs-keyword">var</span> x = <span class="hljs-number">5</span>; | ||
<span class="hljs-keyword">return</span> (<span class="xml"><span class="hljs-tag"><<span class="hljs-name">node</span> <span class="hljs-attr">attr</span>=<span class="hljs-string">"value"</span>></span><span class="hljs-tag"></<span class="hljs-name">node</span>></span></span>); |
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