Skip to content

Commit ea58e44

Browse files
committed
Merge branch 'main-script-tweaks' into main-introduction-as-abstract
2 parents 6e2409a + 3c2c9c6 commit ea58e44

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

scripts/md2html/md2html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ for (let l in lines) {
203203

204204
// remove TOC from older spec versions, respec will generate a new one
205205
if (line.startsWith('## Table of Contents')) inTOC = true;
206-
if (line.startsWith('<!-- /TOC')) inTOC = false;
206+
else if (line.startsWith('#')) inTOC = false;
207207
if (inTOC) line = '';
208208

209209
// special formatting for Definitions section

tests/md2html/fixtures/basic-old.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<p>Text for first chapter</p>
77
<section class="override" id="conformance"><h2>Version 30.0.1</h2>
88
<p>This is the conformance section</p>
9-
<!-- /TOC -->
109
</section></section><section><h1>Heading 2</h1>
1110
<p>Text for first section</p>
1211
<p><span id="parameterAllowEmptyValue"></span>Broken anchor</p>

tests/md2html/fixtures/basic-old.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Intro headline only needs to start with `## Introduction`.
1515

1616
Will be removed
1717

18-
<!-- /TOC -->
19-
2018
## Heading 2
2119

2220
Text for first section

0 commit comments

Comments
 (0)