diff --git a/docs/USING_ADVANCED.md b/docs/USING_ADVANCED.md index 6c6ef810..359942ba 100644 --- a/docs/USING_ADVANCED.md +++ b/docs/USING_ADVANCED.md @@ -14,7 +14,7 @@ marked(markdownString [,options] [,callback]) ```js // Create reference instance -var marked = require('marked'); +const marked = require('marked'); // Set options // `highlight` example uses `highlight.js` @@ -124,23 +124,23 @@ markedWorker.postMessage(markdownString); importScripts('path/to/marked.min.js'); onmessage = (e) => { - var markdownString = e.data + const markdownString = e.data postMessage(marked(markdownString)); }; ``` ```html