diff --git a/src/core/render/compiler.js b/src/core/render/compiler.js
index 35a5bb5e..ed36429d 100644
--- a/src/core/render/compiler.js
+++ b/src/core/render/compiler.js
@@ -302,7 +302,7 @@ export class Compiler {
html = this.compile(text)
} else {
const tree = this.cacheTree[currentPath] || genTree(this.toc, level)
- html = treeTpl(tree, '
')
+ html = treeTpl(tree, '')
this.cacheTree[currentPath] = tree
}
@@ -331,7 +331,7 @@ export class Compiler {
cacheTree[currentPath] = tree
this.toc = []
- return treeTpl(tree, '`
+ innerHTML += tree(node.children, tpl)
}
})
-
- return tpl
+ return tpl.replace('{inner}', innerHTML)
}
export function helper(className, content) {
diff --git a/src/themes/basic/_layout.styl b/src/themes/basic/_layout.styl
index 747c7e5f..1e1e9cc3 100644
--- a/src/themes/basic/_layout.styl
+++ b/src/themes/basic/_layout.styl
@@ -236,7 +236,7 @@ main.hidden
display none
ul
- margin 0
+ margin 0 0 0 15px
padding 0
li > p
diff --git a/src/themes/buble.styl b/src/themes/buble.styl
index 2b071195..53fbc152 100644
--- a/src/themes/buble.styl
+++ b/src/themes/buble.styl
@@ -20,7 +20,7 @@ $sidebar-width = 16rem
li
list-style none
margin 0
- padding 0.2em 0 0.2em 1rem
+ padding 0.2em 0 0.2em 0
ul li ul
padding 0
diff --git a/src/themes/dark.styl b/src/themes/dark.styl
index 2dc479d5..02ca6301 100644
--- a/src/themes/dark.styl
+++ b/src/themes/dark.styl
@@ -17,7 +17,7 @@ body
color #c8c8c8
li
- margin 6px 15px
+ margin 6px 15px 6px 0
ul li a
color #c8c8c8
diff --git a/src/themes/vue.styl b/src/themes/vue.styl
index fc0bf271..267538e3 100644
--- a/src/themes/vue.styl
+++ b/src/themes/vue.styl
@@ -17,7 +17,7 @@ body
color #364149
li
- margin 6px 0 6px 15px
+ margin 6px 0 6px 0
ul li a
color #505d6b