* [bug] the markdown plugin can not render highlight codes for marked.setOptions(highlight)
This commit is contained in:
		@@ -20,8 +20,8 @@
 | 
			
		||||
 | 
			
		||||
	if( typeof hljs !== 'undefined' ) {
 | 
			
		||||
		marked.setOptions({
 | 
			
		||||
			highlight: function( lang, code ) {
 | 
			
		||||
				return hljs.highlightAuto( lang, code ).value;
 | 
			
		||||
			highlight: function( code, lang ) {
 | 
			
		||||
				return hljs.highlightAuto( code, [lang] ).value;
 | 
			
		||||
			}
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user