@brillout/docpress 0.3.4 → 0.3.5
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.
|
@@ -108,13 +108,10 @@ function findParentHeadings(heading, headings) {
|
|
|
108
108
|
return parentHeadings;
|
|
109
109
|
}
|
|
110
110
|
function assertHeadingsUrl(headings) {
|
|
111
|
-
const urls = {};
|
|
112
111
|
headings.forEach((heading) => {
|
|
113
112
|
if (heading.url) {
|
|
114
113
|
const { url } = heading;
|
|
115
114
|
assert(url.startsWith("/"));
|
|
116
|
-
assert(!urls[url], { url });
|
|
117
|
-
urls[url] = true;
|
|
118
115
|
}
|
|
119
116
|
});
|
|
120
117
|
}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getHeadings,
|
|
5
5
|
parseTitle,
|
|
6
6
|
usePageContext
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-PH6CNUIS.js";
|
|
8
8
|
import {
|
|
9
9
|
Emoji,
|
|
10
10
|
jsxToTextContent,
|
|
@@ -311,7 +311,7 @@ function DetachedPageNote() {
|
|
|
311
311
|
}
|
|
312
312
|
}, /* @__PURE__ */ React3.createElement(Emoji, {
|
|
313
313
|
name: "info"
|
|
314
|
-
}), " ", /* @__PURE__ */ React3.createElement("em", null, "Detached"), /* @__PURE__ */ React3.createElement("span", {
|
|
314
|
+
}), " ", /* @__PURE__ */ React3.createElement("b", null, /* @__PURE__ */ React3.createElement("em", null, "Detached")), /* @__PURE__ */ React3.createElement("span", {
|
|
315
315
|
style: {
|
|
316
316
|
opacity: 0.8
|
|
317
317
|
}
|
package/package.json
CHANGED