diff --git a/docs/USING_ADVANCED.md b/docs/USING_ADVANCED.md index 88357de7..95ae48a3 100644 --- a/docs/USING_ADVANCED.md +++ b/docs/USING_ADVANCED.md @@ -86,7 +86,9 @@ marked.setOptions({ } }); -console.log(marked(markdownString)); +marked(markdownString, (err, html) => { + console.log(html); +}); ``` In both examples, `code` is a `string` representing the section of code to pass to the highlighter. In this example, `lang` is a `string` informing the highlighter what programming language to use for the `code` and `callback` is the `function` the asynchronous highlighter will call once complete.