@t8/docsgen 0.1.82 → 0.1.83
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/bin.js
CHANGED
|
@@ -565,6 +565,8 @@ function preprocessContent(s) {
|
|
|
565
565
|
let k1 = -1;
|
|
566
566
|
while ((k0 = s.indexOf(marker.show.start, k1)) !== -1 && (k1 = s.indexOf(marker.show.end, k0)) !== -1)
|
|
567
567
|
s = `${s.slice(0, k0)}${s.slice(k0 + marker.show.start.length, k1)}${s.slice(k1 + marker.show.end.length)}`;
|
|
568
|
+
k0 = -1;
|
|
569
|
+
k1 = -1;
|
|
568
570
|
while ((k0 = s.indexOf(marker.hide.start, k1)) !== -1 && (k1 = s.indexOf(marker.hide.end, k0)) !== -1)
|
|
569
571
|
s = `${s.slice(0, k0 + marker.show.start.length - 1)}${s.slice(k0 + marker.show.start.length, k1)}${s.slice(k1 + marker.show.end.length + 2)}`;
|
|
570
572
|
return s;
|
package/package.json
CHANGED
|
@@ -19,6 +19,9 @@ export function preprocessContent(s: string) {
|
|
|
19
19
|
)
|
|
20
20
|
s = `${s.slice(0, k0)}${s.slice(k0 + marker.show.start.length, k1)}${s.slice(k1 + marker.show.end.length)}`;
|
|
21
21
|
|
|
22
|
+
k0 = -1;
|
|
23
|
+
k1 = -1;
|
|
24
|
+
|
|
22
25
|
while (
|
|
23
26
|
(k0 = s.indexOf(marker.hide.start, k1)) !== -1 &&
|
|
24
27
|
(k1 = s.indexOf(marker.hide.end, k0)) !== -1
|