pretty-toc 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -210,6 +210,9 @@ function prettyToc(option) {
|
|
|
210
210
|
list-style-type: ${listStyle} ;
|
|
211
211
|
list-style-position: inside;
|
|
212
212
|
}
|
|
213
|
+
ul:not(:has(> li)) {
|
|
214
|
+
padding-left: 0;
|
|
215
|
+
}
|
|
213
216
|
@keyframes fadeIn {
|
|
214
217
|
from { opacity: 0; }
|
|
215
218
|
to { opacity: 1; }
|
|
@@ -357,7 +360,7 @@ function prettyToc(option) {
|
|
|
357
360
|
</iframe>
|
|
358
361
|
`;
|
|
359
362
|
ctx.data.nodeStr = `
|
|
360
|
-
<div class="toc-wrapper"><style>${baseStyle + (opt.globalStyle ?? "") + (opt.listStyle === "decimal" ? `ul{
|
|
363
|
+
<div class="toc-wrapper"><style>${baseStyle + (opt.globalStyle ?? "") + (opt.listStyle === "decimal" ? `ul:has(> li) {
|
|
361
364
|
list-style-type: none;
|
|
362
365
|
counter-reset: toc-counter;
|
|
363
366
|
}
|