Skip to content

Commit 7c3a10f

Browse files
committed
change to ul
1 parent 0a2555b commit 7c3a10f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Plugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ public static function create_toc_with_dom($content)
252252

253253
if ($level > $last_level)
254254
// add class
255-
$toc .= '<ol>';
255+
$toc .= '<ul>';
256256
else {
257-
$toc .= str_repeat('</li></ol>', $last_level - $level);
257+
$toc .= str_repeat('</li></ul>', $last_level - $level);
258258
$toc .= '</li>';
259259
}
260260
if ($level >= $last_level) {
@@ -267,7 +267,7 @@ public static function create_toc_with_dom($content)
267267
$last_level = $level;
268268
}
269269

270-
$toc .= str_repeat('</li></ol>', $last_level);
270+
$toc .= str_repeat('</li></ul>', $last_level);
271271
$toc .= '</div></div>';
272272

273273
return $toc . "\n\n\n\n<!- toc end ->\n\n<hr>" . $html->save();

css/toc_style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
font-size: 9pt
2424
}
2525

26-
.toc-index ol {
26+
.toc-index ul {
2727
padding: 0;
2828
margin: 0;
2929
font-size: 100%;

0 commit comments

Comments
 (0)