So here's the code for an inline ToC:
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>Table of Contents</title>
<style type="text/css">
ul.level1 {
list-style-type: none;
padding-left: 2em;
margin: 0;
}
ul.level1>li {
margin-top: 1em;
font-weight: bold;
}
ul.level2 {
list-style-type: none;
font-weight: normal;
padding-left: 2em;
margin: 0;
}
a {
text-decoration: none;
}
a:hover {
color: red;
}
</style>
</head>
<body id="calibre_generated_inline_toc">
<h2>Table of Contents</h2>
<ul class="level1">
<li><a href="index_split_002.html">Part One</a>
<ul class="level2">
<li><a href="index_split_004.html">Chapter One</a></li>
<li><a href="index_split_005.html">Chapter Two</a></li>
<li><a href="index_split_006.html">Chapter Three</a></li>
<li><a href="index_split_007.html">Chapter Four</a></li>
<li><a href="index_split_008.html">Chapter Five</a></li>
</ul>
</li>
<li><a href="index_split_009.html">Part Two</a>
<ul class="level2">
<li><a href="index_split_010.html">Chapter Six</a></li>
<li><a href="index_split_011.html">Chapter Seven</a></li>
<li><a href="index_split_012.html">Chapter Eight</a></li>
</ul>
</li>
</ul>
</body>
</html>
and here's a screenshot showing the file open in the editor:
The same file in the book viewer:
As you can see, the viewer gets it right but the editor doesn't.