File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -622,13 +622,15 @@ export class Highlight extends react.Component<HltProps, {}> {
622
622
super ( props ) ;
623
623
}
624
624
defaultProps = { className : "" } ;
625
- componentDidMount = ( ) => this . highlightCode ( ) ;
626
- componentDidUpdate = ( ) => this . highlightCode ( ) ;
627
625
628
- highlightCode = ( ) => [ ] . forEach . call (
629
- ( < Element > reactDom . findDOMNode ( this ) ) . querySelectorAll ( 'pre code' ) ,
630
- ( node : Node ) => hljs . highlightBlock ( node )
631
- ) ;
626
+ // TODO: fix this highlighting it breaks updates
627
+ // componentDidMount = () => this.highlightCode();
628
+ // componentDidUpdate = () => this.highlightCode();
629
+
630
+ // highlightCode = () => [].forEach.call(
631
+ // (<Element>reactDom.findDOMNode(this)).querySelectorAll('pre code'),
632
+ // (node: Node) => hljs.highlightBlock(node)
633
+ // );
632
634
633
635
public render ( ) {
634
636
return react . createElement ( 'pre' , { className : this . props . className } ,
You can’t perform that action at this time.
0 commit comments