code at the docs fixed
This commit is contained in:
1 parent
9163377a64
commit
0cf1089dad
2 files changed
+3
-5
No files matched your search
@@ -1618,10 +1618,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
}
|
||||
|
||||
function hightlightEmbeddedCode() {
|
||||
_self.Prism.highlightAllUnder(docsContentDiv, true, onHighlighted)
|
||||
function onHighlighted() {
|
||||
// nothing to do here
|
||||
}
|
||||
_self.Prism.highlightAllUnder(docsContentDiv, true)
|
||||
}
|
||||
|
||||
function parseHierarchy(params) {
|
||||
|
||||
@@ -1272,7 +1272,7 @@ function newSuperalgosTutorialSpace() {
|
||||
}
|
||||
case 'Javascript': {
|
||||
let text = UI.projects.superalgos.utilities.docs.getTextBasedOnLanguage(paragraph)
|
||||
html = html + '<pre><code class="language-json">' + text + '</code></pre>'
|
||||
html = html + '<pre><code class="language-javascript">' + text + '</code></pre>'
|
||||
break
|
||||
}
|
||||
case 'List': {
|
||||
@@ -1342,6 +1342,7 @@ function newSuperalgosTutorialSpace() {
|
||||
html = html + '</div>'
|
||||
|
||||
tutorialDiv.innerHTML = html
|
||||
_self.Prism.highlightAllUnder(tutorialDiv, true)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user