Commits

Anonymous committed 0c80791

add test for w3c_compat_class_toc

  • Participants
  • Parent commits 62d9a10
  • Branches use-ul-for-toc-in-w3c-compat-mode

Comments (0)

Files changed (3)

File tests/toc-w3c-compat-class-toc.html

+<!DOCTYPE html><meta charset=utf-8><h1>Foo</h1>
+
+<!--begin-toc-->
+<ul class=toc>
+ <li><a href=#bar><span class=secno>1 </span>Bar</a>
+  <ul class=toc>
+   <li><a href=#baz><span class=secno>1.1 </span>Baz</a>
+    <ul class=toc>
+     <li><a href=#quux><span class=secno>1.1.1 </span>Quux</a></ul></ul></ul>
+<!--end-toc-->
+<h2 id=bar><span class=secno>1 </span>Bar</h2>
+<h3 id=baz><span class=secno>1.1 </span>Baz</h3>
+<h4 id=quux><span class=secno>1.1.1 </span>Quux</h4>

File tests/toc-w3c-compat-class-toc.options

+{
+  "w3c_compat_class_toc": true
+}

File tests/toc-w3c-compat-class-toc.src.html

+<!doctype html>
+<h1>Foo</h1>
+<!--toc-->
+<h2>Bar</h2>
+<h3>Baz</h3>
+<h4>Quux</h4>