Conditions | 8 |
Paths | 4 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | /* |
||
11 | SimpleMDE.prototype.markdown = function(text) { |
||
|
|||
12 | var markedOptions = { sanitize: true }; |
||
13 | |||
14 | if(this.options && this.options.renderingConfig && this.options.renderingConfig.singleLineBreaks === false) { |
||
15 | markedOptions.breaks = false; |
||
16 | } else { |
||
17 | markedOptions.breaks = true; |
||
18 | } |
||
19 | |||
20 | if(this.options && this.options.renderingConfig && this.options.renderingConfig.codeSyntaxHighlighting === true && window.hljs) { |
||
21 | markedOptions.highlight = function(code) { |
||
22 | return window.hljs.highlightAuto(code).value; |
||
23 | }; |
||
24 | } |
||
25 | |||
26 | marked.setOptions(markedOptions); |
||
27 | |||
28 | return marked(text); |
||
29 | } |
||
30 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.