From e493b75bf265fdf980729e4782e07bbf9f1da721 Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Thu, 25 Apr 2019 16:22:24 -0500 Subject: [PATCH] use const --- docs/USING_ADVANCED.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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