diff --git a/README.md b/README.md index b517988e..5600e511 100644 --- a/README.md +++ b/README.md @@ -91,8 +91,8 @@ lang, and callback. The above example uses async highlighting with ```js marked.setOptions({ - highlight: function (code, lang) { - return hljs.highlightAuto(lang, code).value; + highlight: function (code) { + return hljs.highlightAuto(code).value; } }); ```