pretty-toc 0.1.9 → 1.1.1
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 +2 -2
- package/package.json +9 -1
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ const DEFAULT_TITLE_MARKER_TYPE = "icon";
|
|
|
6
6
|
const DEFAULT_TITLE_MARKER_CSS_SIZE = "fit-content";
|
|
7
7
|
const DEFALUT_LOCALE = "en-US";
|
|
8
8
|
const DEFAULT_LIST_STYLE = "decimal";
|
|
9
|
-
const DEFAULT_LI_MARKER_CSS_SIZE = "
|
|
9
|
+
const DEFAULT_LI_MARKER_CSS_SIZE = "1rem";
|
|
10
10
|
const DEFAULT_ANIMATION = {
|
|
11
11
|
duration: "0.8s",
|
|
12
12
|
timingFunction: "ease-in-out"
|
|
@@ -86,7 +86,7 @@ function prettyToc(option) {
|
|
|
86
86
|
const titleMarkerCssSize = opt.titleMarkerCssSize || "fit-content";
|
|
87
87
|
const openedMarker = opt.openedMarker || "▼";
|
|
88
88
|
const closedMarker = opt.closedMarker || "▶︎";
|
|
89
|
-
const liMarkerCssSize = opt.liMarkerCssSize || "
|
|
89
|
+
const liMarkerCssSize = opt.liMarkerCssSize || "1rem";
|
|
90
90
|
let animation = void 0;
|
|
91
91
|
if (typeof opt.animation === "object" && opt.animation !== void 0) animation = opt.animation ?? DEFAULT_ANIMATION;
|
|
92
92
|
else if (opt.animation === true) animation = DEFAULT_ANIMATION;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pretty-toc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Table of Contents generation plugin for the Satteri markdown parser library.",
|
|
6
6
|
"keywords": [
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
],
|
|
13
13
|
"author": "Virgil",
|
|
14
14
|
"license": "MIT",
|
|
15
|
+
"packageManager": "pnpm@11.20.0",
|
|
16
|
+
"devEngines": {
|
|
17
|
+
"runtime": {
|
|
18
|
+
"name": "node",
|
|
19
|
+
"version": ">=24.0.0",
|
|
20
|
+
"onFail": "download"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"homepage": "https://github.com/Virgil-N/pretty-toc#readme",
|
|
16
24
|
"repository": {
|
|
17
25
|
"type": "git",
|