File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -179,12 +179,9 @@ argv.publishDate = getPublishDate(s);
179179let lines = s . split ( / \r ? \n / ) ;
180180
181181let prevHeading = 0 ;
182- let lastIndent = 0 ;
183182let inTOC = false ;
184183let inDefs = false ;
185184let inCodeBlock = false ;
186- let bsFix = true ;
187-
188185let 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 n a m e = " ( [ ^ " ] + ) " > < \/ 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
You can’t perform that action at this time.
0 commit comments