mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Fix further issue with highlight.js brush handling
This commit is contained in:
parent
ee9d19d299
commit
f079b31334
@ -24,8 +24,8 @@ CodeBlockWidget.prototype.postRender = function() {
|
||||
var domNode = this.domNodes[0],
|
||||
language = this.language,
|
||||
tiddler = this.wiki.getTiddler(TYPE_MAPPINGS_BASE + language);
|
||||
if(tiddler && tiddler.fields.text) {
|
||||
language = tiddler.fields.text;
|
||||
if(tiddler) {
|
||||
language = tiddler.fields.text || "";
|
||||
}
|
||||
if($tw.browser && this.document !== $tw.fakeDocument && language) {
|
||||
domNode.className = language.toLowerCase();
|
||||
|
Loading…
Reference in New Issue
Block a user