@cloudbase/weda-ui 0.2.7 → 0.2.8

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.
Files changed (114) hide show
  1. package/package.json +1 -3
  2. package/src/configs/components/container.json +2 -1
  3. package/src/configs/components/form/richText.json +2 -1
  4. package/src/configs/components/form/uploader.json +4 -4
  5. package/src/configs/components/image.json +2 -1
  6. package/src/configs/components/link.json +2 -1
  7. package/src/configs/components/richtextview.json +2 -1
  8. package/src/configs/components/scrollVeiw.json +2 -1
  9. package/src/configs/components/swiper.json +2 -1
  10. package/src/configs/components/tabs.json +2 -1
  11. package/src/configs/components/text.json +2 -1
  12. package/src/configs/index.js +3 -5
  13. package/src/mp/components/form/uploader/index.js +15 -8
  14. package/src/mp/components/form/uploader/index.wxml +1 -1
  15. package/src/web/components/form/select/region/{cities.json → cities.js} +2 -2
  16. package/src/web/components/form/select/region/index.js +3 -3
  17. package/src/web/components/form/select/region/{provinces.json → provinces.js} +2 -2
  18. package/src/web/components/form/select/region/{regions.json → regions.js} +2 -2
  19. package/src/web/components/form/switch/index.jsx +1 -0
  20. package/src/web/components/form/uploader/uploader.h5.jsx +42 -16
  21. package/src/web/components/form/uploader/uploader.pc.jsx +1 -1
  22. package/src/web/components/image/image.jsx +0 -1
  23. package/src/web/components/index.js +0 -1
  24. package/src/configs/components/markdown.json +0 -17
  25. package/src/mp/components/markdown/index.js +0 -27
  26. package/src/mp/components/markdown/index.json +0 -6
  27. package/src/mp/components/markdown/index.wxml +0 -1
  28. package/src/mp/components/markdown/towxml/audio-player/Audio.js +0 -99
  29. package/src/mp/components/markdown/towxml/audio-player/audio-player.js +0 -102
  30. package/src/mp/components/markdown/towxml/audio-player/audio-player.json +0 -5
  31. package/src/mp/components/markdown/towxml/audio-player/audio-player.wxml +0 -14
  32. package/src/mp/components/markdown/towxml/audio-player/audio-player.wxss +0 -175
  33. package/src/mp/components/markdown/towxml/audio-player/loading.svg +0 -1
  34. package/src/mp/components/markdown/towxml/config.js +0 -285
  35. package/src/mp/components/markdown/towxml/decode.js +0 -26
  36. package/src/mp/components/markdown/towxml/decode.json +0 -12
  37. package/src/mp/components/markdown/towxml/decode.wxml +0 -1
  38. package/src/mp/components/markdown/towxml/decode.wxss +0 -0
  39. package/src/mp/components/markdown/towxml/img/img.js +0 -98
  40. package/src/mp/components/markdown/towxml/img/img.json +0 -3
  41. package/src/mp/components/markdown/towxml/img/img.wxml +0 -1
  42. package/src/mp/components/markdown/towxml/img/img.wxss +0 -0
  43. package/src/mp/components/markdown/towxml/index.js +0 -19
  44. package/src/mp/components/markdown/towxml/latex/latex.js +0 -53
  45. package/src/mp/components/markdown/towxml/latex/latex.json +0 -5
  46. package/src/mp/components/markdown/towxml/latex/latex.wxml +0 -1
  47. package/src/mp/components/markdown/towxml/latex/latex.wxss +0 -0
  48. package/src/mp/components/markdown/towxml/parse/highlight/highlight.js +0 -729
  49. package/src/mp/components/markdown/towxml/parse/highlight/index.js +0 -7
  50. package/src/mp/components/markdown/towxml/parse/highlight/languages/bash.js +0 -91
  51. package/src/mp/components/markdown/towxml/parse/highlight/languages/c-like.js +0 -244
  52. package/src/mp/components/markdown/towxml/parse/highlight/languages/c.js +0 -20
  53. package/src/mp/components/markdown/towxml/parse/highlight/languages/css.js +0 -138
  54. package/src/mp/components/markdown/towxml/parse/highlight/languages/dart.js +0 -135
  55. package/src/mp/components/markdown/towxml/parse/highlight/languages/go.js +0 -57
  56. package/src/mp/components/markdown/towxml/parse/highlight/languages/htmlbars.js +0 -79
  57. package/src/mp/components/markdown/towxml/parse/highlight/languages/java.js +0 -126
  58. package/src/mp/components/markdown/towxml/parse/highlight/languages/javascript.js +0 -263
  59. package/src/mp/components/markdown/towxml/parse/highlight/languages/json.js +0 -51
  60. package/src/mp/components/markdown/towxml/parse/highlight/languages/less.js +0 -177
  61. package/src/mp/components/markdown/towxml/parse/highlight/languages/nginx.js +0 -103
  62. package/src/mp/components/markdown/towxml/parse/highlight/languages/php.js +0 -152
  63. package/src/mp/components/markdown/towxml/parse/highlight/languages/python-repl.js +0 -27
  64. package/src/mp/components/markdown/towxml/parse/highlight/languages/python.js +0 -146
  65. package/src/mp/components/markdown/towxml/parse/highlight/languages/scss.js +0 -137
  66. package/src/mp/components/markdown/towxml/parse/highlight/languages/shell.js +0 -23
  67. package/src/mp/components/markdown/towxml/parse/highlight/languages/typescript.js +0 -198
  68. package/src/mp/components/markdown/towxml/parse/highlight/languages/xml.js +0 -143
  69. package/src/mp/components/markdown/towxml/parse/highlight/style/github.wxss +0 -99
  70. package/src/mp/components/markdown/towxml/parse/highlight/style/monokai.wxss +0 -70
  71. package/src/mp/components/markdown/towxml/parse/index.js +0 -106
  72. package/src/mp/components/markdown/towxml/parse/markdown/index.js +0 -53
  73. package/src/mp/components/markdown/towxml/parse/markdown/markdown.js +0 -5834
  74. package/src/mp/components/markdown/towxml/parse/markdown/plugins/emoji.js +0 -1773
  75. package/src/mp/components/markdown/towxml/parse/markdown/plugins/ins.js +0 -120
  76. package/src/mp/components/markdown/towxml/parse/markdown/plugins/latex.js +0 -193
  77. package/src/mp/components/markdown/towxml/parse/markdown/plugins/mark.js +0 -120
  78. package/src/mp/components/markdown/towxml/parse/markdown/plugins/sub.js +0 -95
  79. package/src/mp/components/markdown/towxml/parse/markdown/plugins/sup.js +0 -95
  80. package/src/mp/components/markdown/towxml/parse/markdown/plugins/todo.js +0 -220
  81. package/src/mp/components/markdown/towxml/parse/markdown/plugins/yuml.js +0 -18
  82. package/src/mp/components/markdown/towxml/parse/parse2/Parser.js +0 -263
  83. package/src/mp/components/markdown/towxml/parse/parse2/Tokenizer.js +0 -507
  84. package/src/mp/components/markdown/towxml/parse/parse2/domhandler/index.js +0 -104
  85. package/src/mp/components/markdown/towxml/parse/parse2/domhandler/node.js +0 -169
  86. package/src/mp/components/markdown/towxml/parse/parse2/entities/decode.js +0 -54
  87. package/src/mp/components/markdown/towxml/parse/parse2/entities/decode_codepoint.js +0 -19
  88. package/src/mp/components/markdown/towxml/parse/parse2/entities/encode.js +0 -54
  89. package/src/mp/components/markdown/towxml/parse/parse2/entities/index.js +0 -30
  90. package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/decode.js +0 -31
  91. package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/entities.js +0 -2128
  92. package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/legacy.js +0 -109
  93. package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/xml.js +0 -2
  94. package/src/mp/components/markdown/towxml/parse/parse2/index.js +0 -8
  95. package/src/mp/components/markdown/towxml/style/main.wxss +0 -378
  96. package/src/mp/components/markdown/towxml/style/theme/dark.wxss +0 -73
  97. package/src/mp/components/markdown/towxml/style/theme/light.wxss +0 -63
  98. package/src/mp/components/markdown/towxml/table/table.js +0 -11
  99. package/src/mp/components/markdown/towxml/table/table.json +0 -6
  100. package/src/mp/components/markdown/towxml/table/table.wxml +0 -24
  101. package/src/mp/components/markdown/towxml/table/table.wxss +0 -0
  102. package/src/mp/components/markdown/towxml/todogroup/todogroup.js +0 -19
  103. package/src/mp/components/markdown/towxml/todogroup/todogroup.json +0 -6
  104. package/src/mp/components/markdown/towxml/todogroup/todogroup.wxml +0 -13
  105. package/src/mp/components/markdown/towxml/todogroup/todogroup.wxss +0 -3
  106. package/src/mp/components/markdown/towxml/towxml.js +0 -17
  107. package/src/mp/components/markdown/towxml/towxml.json +0 -6
  108. package/src/mp/components/markdown/towxml/towxml.wxml +0 -5
  109. package/src/mp/components/markdown/towxml/towxml.wxss +0 -8
  110. package/src/mp/components/markdown/towxml/yuml/yuml.js +0 -51
  111. package/src/mp/components/markdown/towxml/yuml/yuml.json +0 -5
  112. package/src/mp/components/markdown/towxml/yuml/yuml.wxml +0 -5
  113. package/src/mp/components/markdown/towxml/yuml/yuml.wxss +0 -0
  114. package/src/web/components/markdown/index.jsx +0 -40
@@ -1,120 +0,0 @@
1
- !(function (e) {
2
- if ('object' === typeof exports && 'undefined' !== typeof module) module.exports = e();
3
- else if ('function' === typeof define && define.amd) define([], e);
4
- else {
5
- let n;
6
- (n =
7
- 'undefined' !== typeof window
8
- ? window
9
- : 'undefined' !== typeof global
10
- ? global
11
- : 'undefined' !== typeof self
12
- ? self
13
- : this),
14
- (n.markdownitIns = e());
15
- }
16
- })(() =>
17
- (function e(n, t, o) {
18
- function r(s, f) {
19
- if (!t[s]) {
20
- if (!n[s]) {
21
- const u = 'function' === typeof require && require;
22
- if (!f && u) return u(s, !0);
23
- if (i) return i(s, !0);
24
- const l = new Error(`Cannot find module '${s}'`);
25
- throw ((l.code = 'MODULE_NOT_FOUND'), l);
26
- }
27
- const p = (t[s] = { exports: {} });
28
- n[s][0].call(
29
- p.exports,
30
- (e) => {
31
- const t = n[s][1][e];
32
- return r(t ? t : e);
33
- },
34
- p,
35
- p.exports,
36
- e,
37
- n,
38
- t,
39
- o,
40
- );
41
- }
42
- return t[s].exports;
43
- }
44
- for (var i = 'function' === typeof require && require, s = 0; s < o.length; s++) r(o[s]);
45
- return r;
46
- })(
47
- {
48
- 1: [
49
- function (e, n, t) {
50
- 'use strict';
51
- n.exports = function (e) {
52
- function n(e, n) {
53
- let t;
54
- let o;
55
- let r;
56
- let i;
57
- let s;
58
- const f = e.pos;
59
- const u = e.src.charCodeAt(f);
60
- if (n) return !1;
61
- if (43 !== u) return !1;
62
- if (((o = e.scanDelims(e.pos, !0)), (i = o.length), (s = String.fromCharCode(u)), 2 > i)) return !1;
63
- for (i % 2 && ((r = e.push('text', '', 0)), (r.content = s), i--), t = 0; i > t; t += 2)
64
- (r = e.push('text', '', 0)),
65
- (r.content = s + s),
66
- e.delimiters.push({
67
- marker: u,
68
- jump: t,
69
- token: e.tokens.length - 1,
70
- level: e.level,
71
- end: -1,
72
- open: o.can_open,
73
- close: o.can_close,
74
- });
75
- return (e.pos += o.length), !0;
76
- }
77
- function t(e) {
78
- let n;
79
- let t;
80
- let o;
81
- let r;
82
- let i;
83
- const s = [];
84
- const f = e.delimiters;
85
- const u = e.delimiters.length;
86
- for (n = 0; u > n; n++)
87
- (o = f[n]),
88
- 43 === o.marker &&
89
- -1 !== o.end &&
90
- ((r = f[o.end]),
91
- (i = e.tokens[o.token]),
92
- (i.type = 'ins_open'),
93
- (i.tag = 'ins'),
94
- (i.nesting = 1),
95
- (i.markup = '++'),
96
- (i.content = ''),
97
- (i = e.tokens[r.token]),
98
- (i.type = 'ins_close'),
99
- (i.tag = 'ins'),
100
- (i.nesting = -1),
101
- (i.markup = '++'),
102
- (i.content = ''),
103
- 'text' === e.tokens[r.token - 1].type &&
104
- '+' === e.tokens[r.token - 1].content &&
105
- s.push(r.token - 1));
106
- for (; s.length; ) {
107
- for (n = s.pop(), t = n + 1; t < e.tokens.length && 'ins_close' === e.tokens[t].type; ) t++;
108
- t--, n !== t && ((i = e.tokens[t]), (e.tokens[t] = e.tokens[n]), (e.tokens[n] = i));
109
- }
110
- }
111
- e.inline.ruler.before('emphasis', 'ins', n), e.inline.ruler2.before('emphasis', 'ins', t);
112
- };
113
- },
114
- {},
115
- ],
116
- },
117
- {},
118
- [1],
119
- )(1),
120
- );
@@ -1,193 +0,0 @@
1
- const config = require('../../../config');
2
-
3
- // Test if potential opening or closing delimieter
4
- // Assumes that there is a "$" at state.src[pos]
5
- function isValidDelim(state, pos) {
6
- let prevChar;
7
- let nextChar;
8
- const max = state.posMax;
9
- let can_open = true;
10
- let can_close = true;
11
-
12
- prevChar = pos > 0 ? state.src.charCodeAt(pos - 1) : -1;
13
- nextChar = pos + 1 <= max ? state.src.charCodeAt(pos + 1) : -1;
14
-
15
- // Check non-whitespace conditions for opening and closing, and
16
- // check that closing delimeter isn't followed by a number
17
- if (
18
- prevChar === 0x20 /* " " */ ||
19
- prevChar === 0x09 /* \t */ ||
20
- (nextChar >= 0x30 /* "0" */ && nextChar <= 0x39) /* "9" */
21
- ) {
22
- can_close = false;
23
- }
24
- if (nextChar === 0x20 /* " " */ || nextChar === 0x09 /* \t */) {
25
- can_open = false;
26
- }
27
-
28
- return {
29
- can_open,
30
- can_close,
31
- };
32
- }
33
-
34
- function math_inline(state, silent) {
35
- let start;
36
- let match;
37
- let token;
38
- let res;
39
- let pos;
40
- let esc_count;
41
-
42
- if (state.src[state.pos] !== '$') {
43
- return false;
44
- }
45
-
46
- res = isValidDelim(state, state.pos);
47
- if (!res.can_open) {
48
- if (!silent) {
49
- state.pending += '$';
50
- }
51
- state.pos += 1;
52
- return true;
53
- }
54
-
55
- // First check for and bypass all properly escaped delimieters
56
- // This loop will assume that the first leading backtick can not
57
- // be the first character in state.src, which is known since
58
- // we have found an opening delimieter already.
59
- start = state.pos + 1;
60
- match = start;
61
- while ((match = state.src.indexOf('$', match)) !== -1) {
62
- // Found potential $, look for escapes, pos will point to
63
- // first non escape when complete
64
- pos = match - 1;
65
- while (state.src[pos] === '\\') {
66
- pos -= 1;
67
- }
68
-
69
- // Even number of escapes, potential closing delimiter found
70
- if ((match - pos) % 2 == 1) {
71
- break;
72
- }
73
- match += 1;
74
- }
75
-
76
- // No closing delimter found. Consume $ and continue.
77
- if (match === -1) {
78
- if (!silent) {
79
- state.pending += '$';
80
- }
81
- state.pos = start;
82
- return true;
83
- }
84
-
85
- // Check if we have empty content, ie: $$. Do not parse.
86
- if (match - start === 0) {
87
- if (!silent) {
88
- state.pending += '$$';
89
- }
90
- state.pos = start + 1;
91
- return true;
92
- }
93
-
94
- // Check for valid closing delimiter
95
- res = isValidDelim(state, match);
96
- if (!res.can_close) {
97
- if (!silent) {
98
- state.pending += '$';
99
- }
100
- state.pos = start;
101
- return true;
102
- }
103
-
104
- if (!silent) {
105
- token = state.push('math_inline', 'math', 0);
106
- token.markup = '$';
107
- token.content = state.src.slice(start, match);
108
- }
109
-
110
- state.pos = match + 1;
111
- return true;
112
- }
113
-
114
- function math_block(state, start, end, silent) {
115
- let firstLine;
116
- let lastLine;
117
- let next;
118
- let lastPos;
119
- let found = false;
120
- let token;
121
- let pos = state.bMarks[start] + state.tShift[start];
122
- let max = state.eMarks[start];
123
-
124
- if (pos + 2 > max) {
125
- return false;
126
- }
127
- if (state.src.slice(pos, pos + 2) !== '$$') {
128
- return false;
129
- }
130
-
131
- pos += 2;
132
- firstLine = state.src.slice(pos, max);
133
-
134
- if (silent) {
135
- return true;
136
- }
137
- if (firstLine.trim().slice(-2) === '$$') {
138
- // Single line expression
139
- firstLine = firstLine.trim().slice(0, -2);
140
- found = true;
141
- }
142
-
143
- for (next = start; !found; ) {
144
- next++;
145
-
146
- if (next >= end) {
147
- break;
148
- }
149
-
150
- pos = state.bMarks[next] + state.tShift[next];
151
- max = state.eMarks[next];
152
-
153
- if (pos < max && state.tShift[next] < state.blkIndent) {
154
- // non-empty line with negative indent should stop the list:
155
- break;
156
- }
157
-
158
- if (state.src.slice(pos, max).trim().slice(-2) === '$$') {
159
- lastPos = state.src.slice(0, max).lastIndexOf('$$');
160
- lastLine = state.src.slice(pos, lastPos);
161
- found = true;
162
- }
163
- }
164
-
165
- state.line = next + 1;
166
-
167
- token = state.push('math_block', 'math', 0);
168
- token.block = true;
169
- token.content =
170
- (firstLine && firstLine.trim() ? `${firstLine}\n` : '') +
171
- state.getLines(start + 1, next, state.tShift[start], true) +
172
- (lastLine && lastLine.trim() ? lastLine : '');
173
- token.map = [start, state.line];
174
- token.markup = '$$';
175
- return true;
176
- }
177
-
178
- module.exports = (md) => {
179
- const inlineRenderer = function (tokens, idx) {
180
- return `<latex value="${encodeURIComponent(tokens[idx].content).replace(/'/g, '%27')}" type="line"></latex>`;
181
- };
182
-
183
- const blockRenderer = function (tokens, idx) {
184
- return `<latex value="${encodeURIComponent(tokens[idx].content).replace(/'/g, '%27')}" type="block"></latex>`;
185
- };
186
-
187
- md.inline.ruler.after('escape', 'math_inline', math_inline);
188
- md.block.ruler.after('blockquote', 'math_block', math_block, {
189
- alt: ['paragraph', 'reference', 'blockquote', 'list'],
190
- });
191
- md.renderer.rules.math_inline = inlineRenderer;
192
- md.renderer.rules.math_block = blockRenderer;
193
- };
@@ -1,120 +0,0 @@
1
- !(function (e) {
2
- if ('object' === typeof exports && 'undefined' !== typeof module) module.exports = e();
3
- else if ('function' === typeof define && define.amd) define([], e);
4
- else {
5
- let n;
6
- (n =
7
- 'undefined' !== typeof window
8
- ? window
9
- : 'undefined' !== typeof global
10
- ? global
11
- : 'undefined' !== typeof self
12
- ? self
13
- : this),
14
- (n.markdownitMark = e());
15
- }
16
- })(() =>
17
- (function e(n, t, o) {
18
- function r(s, f) {
19
- if (!t[s]) {
20
- if (!n[s]) {
21
- const u = 'function' === typeof require && require;
22
- if (!f && u) return u(s, !0);
23
- if (i) return i(s, !0);
24
- const l = new Error(`Cannot find module '${s}'`);
25
- throw ((l.code = 'MODULE_NOT_FOUND'), l);
26
- }
27
- const p = (t[s] = { exports: {} });
28
- n[s][0].call(
29
- p.exports,
30
- (e) => {
31
- const t = n[s][1][e];
32
- return r(t ? t : e);
33
- },
34
- p,
35
- p.exports,
36
- e,
37
- n,
38
- t,
39
- o,
40
- );
41
- }
42
- return t[s].exports;
43
- }
44
- for (var i = 'function' === typeof require && require, s = 0; s < o.length; s++) r(o[s]);
45
- return r;
46
- })(
47
- {
48
- 1: [
49
- function (e, n, t) {
50
- 'use strict';
51
- n.exports = function (e) {
52
- function n(e, n) {
53
- let t;
54
- let o;
55
- let r;
56
- let i;
57
- let s;
58
- const f = e.pos;
59
- const u = e.src.charCodeAt(f);
60
- if (n) return !1;
61
- if (61 !== u) return !1;
62
- if (((o = e.scanDelims(e.pos, !0)), (i = o.length), (s = String.fromCharCode(u)), 2 > i)) return !1;
63
- for (i % 2 && ((r = e.push('text', '', 0)), (r.content = s), i--), t = 0; i > t; t += 2)
64
- (r = e.push('text', '', 0)),
65
- (r.content = s + s),
66
- e.delimiters.push({
67
- marker: u,
68
- jump: t,
69
- token: e.tokens.length - 1,
70
- level: e.level,
71
- end: -1,
72
- open: o.can_open,
73
- close: o.can_close,
74
- });
75
- return (e.pos += o.length), !0;
76
- }
77
- function t(e) {
78
- let n;
79
- let t;
80
- let o;
81
- let r;
82
- let i;
83
- const s = [];
84
- const f = e.delimiters;
85
- const u = e.delimiters.length;
86
- for (n = 0; u > n; n++)
87
- (o = f[n]),
88
- 61 === o.marker &&
89
- -1 !== o.end &&
90
- ((r = f[o.end]),
91
- (i = e.tokens[o.token]),
92
- (i.type = 'mark_open'),
93
- (i.tag = 'mark'),
94
- (i.nesting = 1),
95
- (i.markup = '=='),
96
- (i.content = ''),
97
- (i = e.tokens[r.token]),
98
- (i.type = 'mark_close'),
99
- (i.tag = 'mark'),
100
- (i.nesting = -1),
101
- (i.markup = '=='),
102
- (i.content = ''),
103
- 'text' === e.tokens[r.token - 1].type &&
104
- '=' === e.tokens[r.token - 1].content &&
105
- s.push(r.token - 1));
106
- for (; s.length; ) {
107
- for (n = s.pop(), t = n + 1; t < e.tokens.length && 'mark_close' === e.tokens[t].type; ) t++;
108
- t--, n !== t && ((i = e.tokens[t]), (e.tokens[t] = e.tokens[n]), (e.tokens[n] = i));
109
- }
110
- }
111
- e.inline.ruler.before('emphasis', 'mark', n), e.inline.ruler2.before('emphasis', 'mark', t);
112
- };
113
- },
114
- {},
115
- ],
116
- },
117
- {},
118
- [1],
119
- )(1),
120
- );
@@ -1,95 +0,0 @@
1
- !(function (e) {
2
- if ('object' === typeof exports && 'undefined' !== typeof module) module.exports = e();
3
- else if ('function' === typeof define && define.amd) define([], e);
4
- else {
5
- let r;
6
- (r =
7
- 'undefined' !== typeof window
8
- ? window
9
- : 'undefined' !== typeof global
10
- ? global
11
- : 'undefined' !== typeof self
12
- ? self
13
- : this),
14
- (r.markdownitSub = e());
15
- }
16
- })(() =>
17
- (function e(r, o, n) {
18
- function t(i, u) {
19
- if (!o[i]) {
20
- if (!r[i]) {
21
- const f = 'function' === typeof require && require;
22
- if (!u && f) return f(i, !0);
23
- if (s) return s(i, !0);
24
- const p = new Error(`Cannot find module '${i}'`);
25
- throw ((p.code = 'MODULE_NOT_FOUND'), p);
26
- }
27
- const a = (o[i] = { exports: {} });
28
- r[i][0].call(
29
- a.exports,
30
- (e) => {
31
- const o = r[i][1][e];
32
- return t(o ? o : e);
33
- },
34
- a,
35
- a.exports,
36
- e,
37
- r,
38
- o,
39
- n,
40
- );
41
- }
42
- return o[i].exports;
43
- }
44
- for (var s = 'function' === typeof require && require, i = 0; i < n.length; i++) t(n[i]);
45
- return t;
46
- })(
47
- {
48
- 1: [
49
- function (e, r) {
50
- 'use strict';
51
- function o(e, r) {
52
- let o;
53
- let t;
54
- let s;
55
- const i = e.posMax;
56
- const u = e.pos;
57
- if (126 !== e.src.charCodeAt(u)) return !1;
58
- if (r) return !1;
59
- if (u + 2 >= i) return !1;
60
- for (e.pos = u + 1; e.pos < i; ) {
61
- if (126 === e.src.charCodeAt(e.pos)) {
62
- o = !0;
63
- break;
64
- }
65
- e.md.inline.skipToken(e);
66
- }
67
- return o && u + 1 !== e.pos
68
- ? ((t = e.src.slice(u + 1, e.pos)),
69
- t.match(/(^|[^\\])(\\\\)*\s/)
70
- ? ((e.pos = u), !1)
71
- : ((e.posMax = e.pos),
72
- (e.pos = u + 1),
73
- (s = e.push('sub_open', 'sub', 1)),
74
- (s.markup = '~'),
75
- (s = e.push('text', '', 0)),
76
- (s.content = t.replace(n, '$1')),
77
- (s = e.push('sub_close', 'sub', -1)),
78
- (s.markup = '~'),
79
- (e.pos = e.posMax + 1),
80
- (e.posMax = i),
81
- !0))
82
- : ((e.pos = u), !1);
83
- }
84
- var n = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
85
- r.exports = function (e) {
86
- e.inline.ruler.after('emphasis', 'sub', o);
87
- };
88
- },
89
- {},
90
- ],
91
- },
92
- {},
93
- [1],
94
- )(1),
95
- );
@@ -1,95 +0,0 @@
1
- !(function (e) {
2
- if ('object' === typeof exports && 'undefined' !== typeof module) module.exports = e();
3
- else if ('function' === typeof define && define.amd) define([], e);
4
- else {
5
- let r;
6
- (r =
7
- 'undefined' !== typeof window
8
- ? window
9
- : 'undefined' !== typeof global
10
- ? global
11
- : 'undefined' !== typeof self
12
- ? self
13
- : this),
14
- (r.markdownitSup = e());
15
- }
16
- })(() =>
17
- (function e(r, o, n) {
18
- function t(i, p) {
19
- if (!o[i]) {
20
- if (!r[i]) {
21
- const u = 'function' === typeof require && require;
22
- if (!p && u) return u(i, !0);
23
- if (s) return s(i, !0);
24
- const f = new Error(`Cannot find module '${i}'`);
25
- throw ((f.code = 'MODULE_NOT_FOUND'), f);
26
- }
27
- const a = (o[i] = { exports: {} });
28
- r[i][0].call(
29
- a.exports,
30
- (e) => {
31
- const o = r[i][1][e];
32
- return t(o ? o : e);
33
- },
34
- a,
35
- a.exports,
36
- e,
37
- r,
38
- o,
39
- n,
40
- );
41
- }
42
- return o[i].exports;
43
- }
44
- for (var s = 'function' === typeof require && require, i = 0; i < n.length; i++) t(n[i]);
45
- return t;
46
- })(
47
- {
48
- 1: [
49
- function (e, r) {
50
- 'use strict';
51
- function o(e, r) {
52
- let o;
53
- let t;
54
- let s;
55
- const i = e.posMax;
56
- const p = e.pos;
57
- if (94 !== e.src.charCodeAt(p)) return !1;
58
- if (r) return !1;
59
- if (p + 2 >= i) return !1;
60
- for (e.pos = p + 1; e.pos < i; ) {
61
- if (94 === e.src.charCodeAt(e.pos)) {
62
- o = !0;
63
- break;
64
- }
65
- e.md.inline.skipToken(e);
66
- }
67
- return o && p + 1 !== e.pos
68
- ? ((t = e.src.slice(p + 1, e.pos)),
69
- t.match(/(^|[^\\])(\\\\)*\s/)
70
- ? ((e.pos = p), !1)
71
- : ((e.posMax = e.pos),
72
- (e.pos = p + 1),
73
- (s = e.push('sup_open', 'sup', 1)),
74
- (s.markup = '^'),
75
- (s = e.push('text', '', 0)),
76
- (s.content = t.replace(n, '$1')),
77
- (s = e.push('sup_close', 'sup', -1)),
78
- (s.markup = '^'),
79
- (e.pos = e.posMax + 1),
80
- (e.posMax = i),
81
- !0))
82
- : ((e.pos = p), !1);
83
- }
84
- var n = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
85
- r.exports = function (e) {
86
- e.inline.ruler.after('emphasis', 'sup', o);
87
- };
88
- },
89
- {},
90
- ],
91
- },
92
- {},
93
- [1],
94
- )(1),
95
- );