mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-08 06:55:26 +02:00
fix
This commit is contained in:
parent
002f5d0312
commit
5a753a8879
2 changed files with 4 additions and 4 deletions
2
public/dist/code-styling.bundle.js
vendored
2
public/dist/code-styling.bundle.js
vendored
File diff suppressed because one or more lines are too long
|
@ -15,7 +15,7 @@ export default class CodeStyler {
|
||||||
* @param {string} selector - CSS selector for code blocks
|
* @param {string} selector - CSS selector for code blocks
|
||||||
* @param {string[]} languages - list of languages to highlight, see hljs.listLanguages()
|
* @param {string[]} languages - list of languages to highlight, see hljs.listLanguages()
|
||||||
*/
|
*/
|
||||||
constructor({ selector, languages = ['javascript', 'xml', 'json', 'css'] }) {
|
constructor({selector, languages = ['javascript', 'xml', 'json', 'css']}) {
|
||||||
this.codeBlocksSelector = selector;
|
this.codeBlocksSelector = selector;
|
||||||
this.languages = languages;
|
this.languages = languages;
|
||||||
this.langsAvailable = {
|
this.langsAvailable = {
|
||||||
|
@ -48,8 +48,8 @@ export default class CodeStyler {
|
||||||
|
|
||||||
Array.from(codeBlocks).forEach(block => {
|
Array.from(codeBlocks).forEach(block => {
|
||||||
hljs.highlightBlock(block);
|
hljs.highlightBlock(block);
|
||||||
|
console.log(block);
|
||||||
this.addDiffHighlight(block.firstElementChild);
|
this.addDiffHighlight(block);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue