Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit ddbba2e

Browse files
authored
Merge pull request #77 from eskwayrd/master
Disable highlight.js for "text" language.
2 parents 5ec4354 + d282cc9 commit ddbba2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎autoload/server/static/scripts/index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
})();
214214

215215
marked.setOptions({
216-
highlight: function (code) {
216+
highlight: function (code,lang) {
217217
var i, len, line;
218218
code = code.split('\n');
219219
for(i = 0, len = code.length; i < len; i++) {
@@ -223,7 +223,7 @@
223223
}
224224
}
225225
code = code.join('\n');
226-
code = hljs.highlightAuto(code).value;
226+
if(lang!='text')code = hljs.highlightAuto(code).value;
227227
return code.replace('code' + options.flagSign + 'code', options.aPoint);
228228
},
229229
renderer: options.renderer,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /