novelaid-markdown 0.2.0
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/README.md +6 -0
- package/dist/blank-line-ClJSvRAu.js +129 -0
- package/dist/esm-Psdhd_27.js +1293 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +195 -0
- package/dist/index.umd.cjs +30 -0
- package/dist/lib-DWIu06lZ.js +99 -0
- package/dist/react-markdown-BXmDW998.js +4220 -0
- package/dist/rehype-raw-_yRr8ewB.js +5224 -0
- package/dist/remark-gfm-Cfc5YeEq.js +1890 -0
- package/package.json +56 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
//#region node_modules/devlop/lib/default.js
|
|
2
|
+
function e() {}
|
|
3
|
+
function t() {}
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region node_modules/unist-util-is/lib/index.js
|
|
6
|
+
var n = (function(e) {
|
|
7
|
+
if (e == null) return s;
|
|
8
|
+
if (typeof e == "function") return o(e);
|
|
9
|
+
if (typeof e == "object") return Array.isArray(e) ? r(e) : i(e);
|
|
10
|
+
if (typeof e == "string") return a(e);
|
|
11
|
+
throw Error("Expected function, string, or object as test");
|
|
12
|
+
});
|
|
13
|
+
function r(e) {
|
|
14
|
+
let t = [], r = -1;
|
|
15
|
+
for (; ++r < e.length;) t[r] = n(e[r]);
|
|
16
|
+
return o(i);
|
|
17
|
+
function i(...e) {
|
|
18
|
+
let n = -1;
|
|
19
|
+
for (; ++n < t.length;) if (t[n].apply(this, e)) return !0;
|
|
20
|
+
return !1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function i(e) {
|
|
24
|
+
let t = e;
|
|
25
|
+
return o(n);
|
|
26
|
+
function n(n) {
|
|
27
|
+
let r = n, i;
|
|
28
|
+
for (i in e) if (r[i] !== t[i]) return !1;
|
|
29
|
+
return !0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function a(e) {
|
|
33
|
+
return o(t);
|
|
34
|
+
function t(t) {
|
|
35
|
+
return t && t.type === e;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function o(e) {
|
|
39
|
+
return t;
|
|
40
|
+
function t(t, n, r) {
|
|
41
|
+
return !!(c(t) && e.call(this, t, typeof n == "number" ? n : void 0, r || void 0));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function s() {
|
|
45
|
+
return !0;
|
|
46
|
+
}
|
|
47
|
+
function c(e) {
|
|
48
|
+
return typeof e == "object" && !!e && "type" in e;
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region node_modules/unist-util-visit-parents/lib/color.js
|
|
52
|
+
function l(e) {
|
|
53
|
+
return e;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region node_modules/unist-util-visit-parents/lib/index.js
|
|
57
|
+
var u = [];
|
|
58
|
+
function d(e, t, r, i) {
|
|
59
|
+
let a;
|
|
60
|
+
typeof t == "function" && typeof r != "function" ? (i = r, r = t) : a = t;
|
|
61
|
+
let o = n(a), s = i ? -1 : 1;
|
|
62
|
+
c(e, void 0, [])();
|
|
63
|
+
function c(e, n, a) {
|
|
64
|
+
let d = e && typeof e == "object" ? e : {};
|
|
65
|
+
if (typeof d.type == "string") {
|
|
66
|
+
let t = typeof d.tagName == "string" ? d.tagName : typeof d.name == "string" ? d.name : void 0;
|
|
67
|
+
Object.defineProperty(p, "name", { value: "node (" + l(e.type + (t ? "<" + t + ">" : "")) + ")" });
|
|
68
|
+
}
|
|
69
|
+
return p;
|
|
70
|
+
function p() {
|
|
71
|
+
let l = u, d, p, m;
|
|
72
|
+
if ((!t || o(e, n, a[a.length - 1] || void 0)) && (l = f(r(e, a)), l[0] === !1)) return l;
|
|
73
|
+
if ("children" in e && e.children) {
|
|
74
|
+
let t = e;
|
|
75
|
+
if (t.children && l[0] !== "skip") for (p = (i ? t.children.length : -1) + s, m = a.concat(t); p > -1 && p < t.children.length;) {
|
|
76
|
+
let e = t.children[p];
|
|
77
|
+
if (d = c(e, p, m)(), d[0] === !1) return d;
|
|
78
|
+
p = typeof d[1] == "number" ? d[1] : p + s;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return l;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function f(e) {
|
|
86
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [!0, e] : e == null ? u : [e];
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region node_modules/unist-util-visit/lib/index.js
|
|
90
|
+
function p(e, t, n, r) {
|
|
91
|
+
let i, a, o;
|
|
92
|
+
typeof t == "function" && typeof n != "function" ? (a = void 0, o = t, i = n) : (a = t, o = n, i = r), d(e, a, s, i);
|
|
93
|
+
function s(e, t) {
|
|
94
|
+
let n = t[t.length - 1], r = n ? n.children.indexOf(e) : void 0;
|
|
95
|
+
return o(e, r, n);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
export { t as a, e as i, d as n, n as r, p as t };
|