Skip to content

Commit 7e46a2e

Browse files
author
Martii
committed
Auto-highlight code fence tweak
* Some Userscripts showing as .qml now... add to the "block" list to narrow down * Bug fix on `switch` with missing `break`. Post OpenUserJS#572
1 parent 9e264df commit 7e46a2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/markdown.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ marked.setOptions({
106106
// Transform list of auto-detected language highlights
107107
case 'dust':
108108
case '1c':
109+
case 'qml':
109110
// Narrow auto-detection to something that is more likely
110111
return hljs.highlightAuto(aCode, ['css', 'html', 'js', 'json']).value;
112+
break;
111113
// Any other detected go ahead and return
112114
default:
113115
return obj.value;

0 commit comments

Comments
 (0)