MCPcopy Create free account
hub / github.com/sql-js/sql.js / blockLanguage

Function blockLanguage

documentation/javascript/application.js:190–199  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

188 }
189
190 function blockLanguage(block) {
191 var classes = block.className.split(/\s+/);
192 classes = classes.concat(block.parentNode.className.split(/\s+/));
193 for (var i = 0; i < classes.length; i++) {
194 var class_ = classes[i].replace(/^language-/, '');
195 if (languages[class_] || class_ == 'no-highlight') {
196 return class_;
197 }
198 }
199 }
200
201 /* Stream merging */
202

Callers 1

highlightBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…