Skip to content

Commit 74323af

Browse files
committed
Remove unused variable
1 parent dcfea9e commit 74323af

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

scripts/md2html/md2html.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,9 @@ argv.publishDate = getPublishDate(s);
179179
let lines = s.split(/\r?\n/);
180180

181181
let prevHeading = 0;
182-
let lastIndent = 0;
183182
let inTOC = false;
184183
let inDefs = false;
185184
let inCodeBlock = false;
186-
let bsFix = true;
187-
188185
let indents = [0];
189186

190187
// process the markdown
@@ -199,7 +196,6 @@ for (let l in lines) {
199196
// special formatting for Definitions section
200197
if (line.startsWith('## Definitions')) {
201198
inDefs = true;
202-
bsFix = false;
203199
}
204200
else if (line.startsWith('## ')) inDefs = false;
205201

@@ -212,6 +208,7 @@ for (let l in lines) {
212208
// fix syntax error in 2.0.md
213209
line = line.replace('<a name="parameterAllowEmptyValue"/>','<span id="parameterAllowEmptyValue"></span>');
214210
}
211+
215212
// replace deprecated <a name="..."></a> with <span id="..."></span>
216213
line = line.replace(/<a name="([^"]+)"><\/a>/g,'<span id="$1"></span>');
217214

@@ -310,7 +307,6 @@ for (let l in lines) {
310307
d--;
311308
}
312309
}
313-
lastIndent = indent;
314310
}
315311

316312
// wrap section text in <section>...</section> tags for respec

0 commit comments

Comments
 (0)