Beispiel #1
0
 return () => {
     if (typeof cache == 'undefined') {
         var withoutIndent = removeCommonIndent(text);
         cache = highlight(withoutIndent, lang);
     }
     return cache;
 }
Beispiel #2
0
	highlight: function (str, lang) {
		// if (lang && illuminate.getLanguage(lang)) {
			return illuminate.highlight(str, lang);
		// }

		return '';
	},