Fixed highlight.js example
This commit is contained in:
parent
dee9dc7bb1
commit
e778ce03da
@ -91,8 +91,8 @@ lang, and callback. The above example uses async highlighting with
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
marked.setOptions({
|
marked.setOptions({
|
||||||
highlight: function (code, lang) {
|
highlight: function (code) {
|
||||||
return hljs.highlightAuto(lang, code).value;
|
return hljs.highlightAuto(code).value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user