From dd722012597b49d14cf4eb13c7e7337d40dfdfd7 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Tue, 27 Mar 2018 19:01:10 +0300 Subject: [PATCH] Fix nits in code example in USING_ADVANCED.md 1. Tab indent -> 2 spaces indent. 2. Rename undefined variable. --- docs/USING_ADVANCED.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/USING_ADVANCED.md b/docs/USING_ADVANCED.md index c3660ac5..056d473b 100644 --- a/docs/USING_ADVANCED.md +++ b/docs/USING_ADVANCED.md @@ -19,9 +19,9 @@ var myMarked = require('marked'); // Set options // `highlight` example uses `highlight.js` myMarked.setOptions({ - renderer: new marked.Renderer(), + renderer: new myMarked.Renderer(), highlight: function(code) { - return require('highlight.js').highlightAuto(code).value; + return require('highlight.js').highlightAuto(code).value; }, pedantic: false, gfm: true, @@ -68,4 +68,4 @@ myMarked.setOptions({ console.log(myMarked(markdownString)); ``` -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 lnaguage to use for the `code` and `callback` is the `function` the asynchronous highlighter will call once complete. \ No newline at end of file +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 lnaguage to use for the `code` and `callback` is the `function` the asynchronous highlighter will call once complete.