File tree Expand file tree Collapse file tree 4 files changed +36
-18
lines changed
Expand file tree Collapse file tree 4 files changed +36
-18
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ securitySchemes:
4848
4949securedBy : [ basic, digest_auth, oauth_2_0 ]
5050
51-
5251/teams :
5352 displayName : Teams
5453 post :
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- // Marked Settings
34- renderer . paragraph = function ( text ) {
35- return text ;
36- } ;
37-
3833 window . marked . setOptions ( {
3934 renderer : renderer ,
4035 gfm : true ,
4136 tables : true ,
42- breaks : false ,
37+ breaks : true ,
4338 pedantic : false ,
44- sanitize : true ,
39+ sanitize : false ,
4540 smartLists : true ,
46- smartypants : false
41+ smartypants : false ,
42+ highlight : function ( code , lang ) {
43+ var result = [
44+ '<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>' ,
52+ '</pre>'
53+ ] ;
54+
55+ return result . join ( '' ) ;
56+ }
4757 } ) ;
4858
4959 // Settings
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- // Marked Settings
34- renderer . paragraph = function ( text ) {
35- return text ;
36- } ;
37-
3833 window . marked . setOptions ( {
3934 renderer : renderer ,
4035 gfm : true ,
4136 tables : true ,
42- breaks : false ,
37+ breaks : true ,
4338 pedantic : false ,
44- sanitize : true ,
39+ sanitize : false ,
4540 smartLists : true ,
46- smartypants : false
41+ smartypants : false ,
42+ highlight : function ( code , lang ) {
43+ var result = [
44+ '<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>' ,
52+ '</pre>'
53+ ] ;
54+
55+ return result . join ( '' ) ;
56+ }
4757 } ) ;
4858
4959 // Settings
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ securitySchemes:
4848
4949securedBy : [ basic, digest_auth, oauth_2_0 ]
5050
51-
5251/teams :
5352 displayName : Teams
5453 post :
You can’t perform that action at this time.
0 commit comments