File tree Expand file tree Collapse file tree 2 files changed +22
-14
lines changed
Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Original file line number Diff line number Diff line change 3030 var loc = window . location ;
3131 var uri = loc . protocol + '//' + loc . host + loc . pathname . replace ( / \/ $ / , '' ) ;
3232
33+ window . hljs . configure ( {
34+ classPrefix : 'raml-console-hljs-'
35+ } ) ;
36+
3337 window . marked . setOptions ( {
3438 renderer : renderer ,
3539 gfm : true ,
4246 highlight : function ( code , lang ) {
4347 var result = [
4448 '<pre class="raml-console-resource-pre">' ,
45- '<code class="raml-console-hljs"' ,
46- '<pre>' ,
47- '<code class="hljs">' ,
48- lang ? window . hljs . highlightAuto ( code ) . value . replace ( / h l j s / g , 'raml-console-hljs' ) : code ,
49- '</code>' ,
50- '</pre>' ,
51- '</code>' ,
49+ ' <code class="raml-console-hljs"' ,
50+ ' <pre>' ,
51+ ' <code class="hljs">' ,
52+ lang ? window . hljs . highlightAuto ( code ) . value : code ,
53+ ' </code>' ,
54+ ' </pre>' ,
55+ ' </code>' ,
5256 '</pre>'
5357 ] ;
5458
Original file line number Diff line number Diff line change 3030 var loc = window . location ;
3131 var uri = loc . protocol + '//' + loc . host + loc . pathname . replace ( / \/ $ / , '' ) ;
3232
33+ window . hljs . configure ( {
34+ classPrefix : 'raml-console-hljs-'
35+ } ) ;
36+
3337 window . marked . setOptions ( {
3438 renderer : renderer ,
3539 gfm : true ,
4246 highlight : function ( code , lang ) {
4347 var result = [
4448 '<pre class="raml-console-resource-pre">' ,
45- '<code class="raml-console-hljs"' ,
46- '<pre>' ,
47- '<code class="hljs">' ,
48- lang ? window . hljs . highlightAuto ( code ) . value . replace ( / h l j s / g , 'raml-console-hljs' ) : code ,
49- '</code>' ,
50- '</pre>' ,
51- '</code>' ,
49+ ' <code class="raml-console-hljs"' ,
50+ ' <pre>' ,
51+ ' <code class="hljs">' ,
52+ lang ? window . hljs . highlightAuto ( code ) . value : code ,
53+ ' </code>' ,
54+ ' </pre>' ,
55+ ' </code>' ,
5256 '</pre>'
5357 ] ;
5458
You can’t perform that action at this time.
0 commit comments