mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-24 19:10:42 -08:00
Force the highlight language to lower case
This commit is contained in:
parent
bd750a21e2
commit
0200bc1b4e
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ var CodeBlockWidget = require("$:/core/modules/widgets/codeblock.js").codeblock;
|
|||
CodeBlockWidget.prototype.postRender = function() {
|
||||
var domNode = this.domNodes[0];
|
||||
if($tw.browser && this.document !== $tw.fakeDocument && this.language) {
|
||||
domNode.className = this.language;
|
||||
domNode.className = this.language.toLowerCase();
|
||||
var hljs = require("$:/plugins/tiddlywiki/highlight/highlight.js").hljs;
|
||||
hljs.tabReplace = " ";
|
||||
hljs.highlightBlock(domNode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue