git-semver-tagger 2.4.0 → 2.5.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/kotlin/clikt-clikt-mordant-markdown.js +3 -3
- package/kotlin/clikt-clikt-mordant.js +86 -86
- package/kotlin/clikt-clikt.js +1389 -1385
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +451 -451
- package/kotlin/command-line-tools-tagger-cli.js +348 -348
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +179 -178
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1590 -1598
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +2029 -1711
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/markdown.js +1899 -1899
- package/kotlin/mordant-mordant-markdown.js +195 -195
- package/kotlin/mordant-mordant.js +1518 -1518
- package/kotlin/tools-cli-tools.js +3 -3
- package/kotlin/tools-digger-core.js +2 -2
- package/kotlin/tools-git-adapter.js +21 -21
- package/kotlin/tools-tagger-core.js +27 -27
- package/kotlin/tools-tagger-json.js +135 -135
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_mordant_mordant, kotlin_org_jetbrains_markdown) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.qa;
|
|
5
5
|
var Companion_instance = kotlin_mordant_mordant.$_$.l;
|
|
6
6
|
var listOf = kotlin_kotlin.$_$.q6;
|
|
7
7
|
var Line_init_$Create$ = kotlin_mordant_mordant.$_$.v;
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
var Lines = kotlin_mordant_mordant.$_$.a;
|
|
15
15
|
var render$default = kotlin_mordant_mordant.$_$.u;
|
|
16
16
|
var Widget = kotlin_mordant_mordant.$_$.c;
|
|
17
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
18
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
17
|
+
var initMetadataForClass = kotlin_kotlin.$_$.s9;
|
|
18
|
+
var ensureNotNull = kotlin_kotlin.$_$.of;
|
|
19
19
|
var MarkdownElementTypes_getInstance = kotlin_org_jetbrains_markdown.$_$.d;
|
|
20
|
-
var equals = kotlin_kotlin.$_$.
|
|
21
|
-
var toString = kotlin_kotlin.$_$.
|
|
20
|
+
var equals = kotlin_kotlin.$_$.m9;
|
|
21
|
+
var toString = kotlin_kotlin.$_$.sa;
|
|
22
22
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
23
23
|
var Builder_getInstance = kotlin_org_jetbrains_markdown.$_$.c;
|
|
24
24
|
var verticalLayout = kotlin_mordant_mordant.$_$.f;
|
|
@@ -37,36 +37,36 @@
|
|
|
37
37
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.a1;
|
|
38
38
|
var OrderedList_init_$Create$ = kotlin_mordant_mordant.$_$.y;
|
|
39
39
|
var UnorderedList_init_$Create$ = kotlin_mordant_mordant.$_$.b1;
|
|
40
|
-
var take = kotlin_kotlin.$_$.
|
|
40
|
+
var take = kotlin_kotlin.$_$.qd;
|
|
41
41
|
var GFMTokenTypes_getInstance = kotlin_org_jetbrains_markdown.$_$.b;
|
|
42
|
-
var drop_0 = kotlin_kotlin.$_$.
|
|
42
|
+
var drop_0 = kotlin_kotlin.$_$.gc;
|
|
43
43
|
var firstOrNull = kotlin_kotlin.$_$.t5;
|
|
44
44
|
var TextStyles_reset_getInstance = kotlin_mordant_mordant.$_$.q;
|
|
45
45
|
var last = kotlin_kotlin.$_$.n6;
|
|
46
|
-
var substring = kotlin_kotlin.$_$.
|
|
47
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
48
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
49
|
-
var trim = kotlin_kotlin.$_$.
|
|
46
|
+
var substring = kotlin_kotlin.$_$.pd;
|
|
47
|
+
var THROW_CCE = kotlin_kotlin.$_$.ye;
|
|
48
|
+
var isCharSequence = kotlin_kotlin.$_$.ca;
|
|
49
|
+
var trim = kotlin_kotlin.$_$.ge;
|
|
50
50
|
var joinToString = kotlin_kotlin.$_$.d6;
|
|
51
51
|
var horizontalLayout = kotlin_mordant_mordant.$_$.d;
|
|
52
52
|
var TextStyle = kotlin_mordant_mordant.$_$.b;
|
|
53
53
|
var withPadding = kotlin_mordant_mordant.$_$.i;
|
|
54
|
-
var to = kotlin_kotlin.$_$.
|
|
55
|
-
var map = kotlin_kotlin.$_$.
|
|
56
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
54
|
+
var to = kotlin_kotlin.$_$.yf;
|
|
55
|
+
var map = kotlin_kotlin.$_$.wb;
|
|
56
|
+
var isBlank = kotlin_kotlin.$_$.nc;
|
|
57
57
|
var findChildOfType = kotlin_org_jetbrains_markdown.$_$.g;
|
|
58
58
|
var charSequenceLength = kotlin_kotlin.$_$.i9;
|
|
59
59
|
var Companion_getInstance_0 = kotlin_mordant_mordant.$_$.k;
|
|
60
60
|
var checkIndexOverflow = kotlin_kotlin.$_$.y4;
|
|
61
|
-
var removeSurrounding = kotlin_kotlin.$_$.
|
|
61
|
+
var removeSurrounding = kotlin_kotlin.$_$.bd;
|
|
62
62
|
var TextAlign_LEFT_getInstance = kotlin_mordant_mordant.$_$.o;
|
|
63
63
|
var TextAlign_RIGHT_getInstance = kotlin_mordant_mordant.$_$.p;
|
|
64
64
|
var TextAlign_CENTER_getInstance = kotlin_mordant_mordant.$_$.n;
|
|
65
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
66
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
65
|
+
var startsWith = kotlin_kotlin.$_$.jd;
|
|
66
|
+
var endsWith = kotlin_kotlin.$_$.hc;
|
|
67
67
|
var Whitespace_PRE_getInstance = kotlin_mordant_mordant.$_$.t;
|
|
68
68
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
69
|
-
var replace = kotlin_kotlin.$_$.
|
|
69
|
+
var replace = kotlin_kotlin.$_$.dd;
|
|
70
70
|
var GFMFlavourDescriptor = kotlin_org_jetbrains_markdown.$_$.h;
|
|
71
71
|
var MarkdownParser_init_$Create$ = kotlin_org_jetbrains_markdown.$_$.f;
|
|
72
72
|
//endregion
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
initMetadataForClass(MarkdownRenderer, 'MarkdownRenderer');
|
|
77
77
|
//endregion
|
|
78
78
|
function BlockQuote(content) {
|
|
79
|
-
this.
|
|
79
|
+
this.w30_1 = content;
|
|
80
80
|
}
|
|
81
|
-
protoOf(BlockQuote).
|
|
82
|
-
return this.
|
|
81
|
+
protoOf(BlockQuote).w23 = function (t, width) {
|
|
82
|
+
return this.w30_1.w23(t, width - 2 | 0).b24(2);
|
|
83
83
|
};
|
|
84
|
-
protoOf(BlockQuote).
|
|
85
|
-
var bar = Companion_instance.
|
|
84
|
+
protoOf(BlockQuote).x23 = function (t, width) {
|
|
85
|
+
var bar = Companion_instance.z1y(t.m1z_1.n23('markdown.blockquote.bar'), t.m1z_1.k23('markdown.blockquote'));
|
|
86
86
|
var justBar = Line_init_$Create$(listOf(bar));
|
|
87
|
-
var paddedBar = listOf_0([bar, Companion_instance.
|
|
88
|
-
var lines = this.
|
|
87
|
+
var paddedBar = listOf_0([bar, Companion_instance.t1y(VOID, t.m1z_1.k23('markdown.blockquote'))]);
|
|
88
|
+
var lines = this.w30_1.x23(t, width).z21(t.m1z_1.k23('markdown.blockquote')).m1y_1;
|
|
89
89
|
// Inline function 'kotlin.collections.map' call
|
|
90
90
|
// Inline function 'kotlin.collections.mapTo' call
|
|
91
91
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(lines, 10));
|
|
@@ -98,63 +98,63 @@
|
|
|
98
98
|
return new Lines(destination);
|
|
99
99
|
};
|
|
100
100
|
function document($this, t) {
|
|
101
|
-
if ($this.
|
|
101
|
+
if ($this.a31_1 == null) {
|
|
102
102
|
var tmp = $this;
|
|
103
|
-
var tmp0_elvis_lhs = $this.
|
|
104
|
-
tmp.
|
|
103
|
+
var tmp0_elvis_lhs = $this.z30_1;
|
|
104
|
+
tmp.a31_1 = (new MarkdownRenderer($this.x30_1, t.m1z_1, $this.y30_1, tmp0_elvis_lhs == null ? t.t1z_1.p2a_1 : tmp0_elvis_lhs)).n26();
|
|
105
105
|
}
|
|
106
|
-
return ensureNotNull($this.
|
|
106
|
+
return ensureNotNull($this.a31_1);
|
|
107
107
|
}
|
|
108
108
|
function Markdown(markdown, showHtml, hyperlinks) {
|
|
109
109
|
showHtml = showHtml === VOID ? false : showHtml;
|
|
110
110
|
hyperlinks = hyperlinks === VOID ? null : hyperlinks;
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
113
|
-
this.
|
|
114
|
-
this.
|
|
111
|
+
this.x30_1 = markdown;
|
|
112
|
+
this.y30_1 = showHtml;
|
|
113
|
+
this.z30_1 = hyperlinks;
|
|
114
|
+
this.a31_1 = null;
|
|
115
115
|
}
|
|
116
|
-
protoOf(Markdown).
|
|
117
|
-
return document(this, t).
|
|
116
|
+
protoOf(Markdown).w23 = function (t, width) {
|
|
117
|
+
return document(this, t).w23(t, width);
|
|
118
118
|
};
|
|
119
|
-
protoOf(Markdown).
|
|
120
|
-
return document(this, t).
|
|
119
|
+
protoOf(Markdown).x23 = function (t, width) {
|
|
120
|
+
return document(this, t).x23(t, width);
|
|
121
121
|
};
|
|
122
122
|
function parseFile($this, node) {
|
|
123
123
|
// Inline function 'kotlin.require' call
|
|
124
124
|
// Inline function 'kotlin.require' call
|
|
125
|
-
if (!equals(node.
|
|
125
|
+
if (!equals(node.y2g(), MarkdownElementTypes_getInstance().w2d_1)) {
|
|
126
126
|
var message = 'Failed requirement.';
|
|
127
127
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
128
128
|
}
|
|
129
|
-
if ($this.
|
|
130
|
-
$this.
|
|
131
|
-
return parseBlocks($this, node.
|
|
129
|
+
if ($this.d31_1)
|
|
130
|
+
$this.j31_1 = Builder_getInstance().x2t(node, $this.i31_1);
|
|
131
|
+
return parseBlocks($this, node.b2h());
|
|
132
132
|
}
|
|
133
133
|
function parseBlocks($this, nodes) {
|
|
134
134
|
return verticalLayout(MarkdownRenderer$parseBlocks$lambda(nodes, $this));
|
|
135
135
|
}
|
|
136
136
|
function parseStructure($this, node) {
|
|
137
|
-
var tmp0_subject = node.
|
|
137
|
+
var tmp0_subject = node.y2g();
|
|
138
138
|
var tmp;
|
|
139
|
-
if (equals(tmp0_subject, MarkdownElementTypes_getInstance().
|
|
139
|
+
if (equals(tmp0_subject, MarkdownElementTypes_getInstance().x2d_1)) {
|
|
140
140
|
tmp = UnorderedList_init_$Create$(parseListItems($this, node));
|
|
141
|
-
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().w2d_1)) {
|
|
142
|
-
tmp = OrderedList_init_$Create$(parseListItems($this, node));
|
|
143
141
|
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().y2d_1)) {
|
|
142
|
+
tmp = OrderedList_init_$Create$(parseListItems($this, node));
|
|
143
|
+
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().a2e_1)) {
|
|
144
144
|
// Inline function 'kotlin.collections.filter' call
|
|
145
|
-
var tmp0 = drop(node.
|
|
145
|
+
var tmp0 = drop(node.b2h(), 1);
|
|
146
146
|
// Inline function 'kotlin.collections.filterTo' call
|
|
147
147
|
var destination = ArrayList_init_$Create$_0();
|
|
148
148
|
var _iterator__ex2g4s = tmp0.r();
|
|
149
149
|
while (_iterator__ex2g4s.s()) {
|
|
150
150
|
var element = _iterator__ex2g4s.t();
|
|
151
|
-
if (!equals(element.
|
|
151
|
+
if (!equals(element.y2g(), Companion_getInstance().m2g_1)) {
|
|
152
152
|
destination.v(element);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
tmp = new BlockQuote(parseBlocks($this, destination));
|
|
156
|
-
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().
|
|
157
|
-
var tmp0_0 = node.
|
|
156
|
+
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().b2e_1)) {
|
|
157
|
+
var tmp0_0 = node.b2h();
|
|
158
158
|
var tmp$ret$3;
|
|
159
159
|
$l$block: {
|
|
160
160
|
// Inline function 'kotlin.collections.indexOfFirst' call
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
var _iterator__ex2g4s_0 = tmp0_0.r();
|
|
163
163
|
while (_iterator__ex2g4s_0.s()) {
|
|
164
164
|
var item = _iterator__ex2g4s_0.t();
|
|
165
|
-
if (equals(item.
|
|
165
|
+
if (equals(item.y2g(), Companion_getInstance().f2g_1)) {
|
|
166
166
|
tmp$ret$3 = index;
|
|
167
167
|
break $l$block;
|
|
168
168
|
}
|
|
@@ -171,14 +171,14 @@
|
|
|
171
171
|
tmp$ret$3 = -1;
|
|
172
172
|
}
|
|
173
173
|
var start = tmp$ret$3;
|
|
174
|
-
var tmp0_1 = node.
|
|
174
|
+
var tmp0_1 = node.b2h();
|
|
175
175
|
var tmp$ret$5;
|
|
176
176
|
$l$block_0: {
|
|
177
177
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
178
178
|
var iterator = tmp0_1.i1(tmp0_1.d1());
|
|
179
179
|
while (iterator.g4()) {
|
|
180
180
|
var it = iterator.i4();
|
|
181
|
-
if (equals(it.
|
|
181
|
+
if (equals(it.y2g(), Companion_getInstance().f2g_1)) {
|
|
182
182
|
tmp$ret$5 = iterator.h4();
|
|
183
183
|
break $l$block_0;
|
|
184
184
|
}
|
|
@@ -186,43 +186,43 @@
|
|
|
186
186
|
tmp$ret$5 = -1;
|
|
187
187
|
}
|
|
188
188
|
var end = tmp$ret$5;
|
|
189
|
-
var dropLast = end < 0 ? 0 : get_lastIndex(node.
|
|
189
|
+
var dropLast = end < 0 ? 0 : get_lastIndex(node.b2h()) - end | 0;
|
|
190
190
|
var inner = innerInlines($this, node, start, dropLast);
|
|
191
|
-
var content = Text_init_$Create$($this.
|
|
192
|
-
tmp = $this.
|
|
193
|
-
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().a2e_1)) {
|
|
194
|
-
var content_0 = Text_init_$Create$($this.z30_1.i23('markdown.code.block').z1u(innerInlines($this, node)), Whitespace_PRE_WRAP_getInstance());
|
|
195
|
-
tmp = $this.z30_1.k23('markdown.code.block.border') ? Panel_init_$Create$(content_0) : content_0;
|
|
191
|
+
var content = Text_init_$Create$($this.b31_1.k23('markdown.code.block').b1v(inner), Whitespace_PRE_WRAP_getInstance());
|
|
192
|
+
tmp = $this.b31_1.m23('markdown.code.block.border') ? Panel_init_$Create$(content) : content;
|
|
196
193
|
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().c2e_1)) {
|
|
197
|
-
|
|
198
|
-
|
|
194
|
+
var content_0 = Text_init_$Create$($this.b31_1.k23('markdown.code.block').b1v(innerInlines($this, node)), Whitespace_PRE_WRAP_getInstance());
|
|
195
|
+
tmp = $this.b31_1.m23('markdown.code.block.border') ? Panel_init_$Create$(content_0) : content_0;
|
|
196
|
+
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().e2e_1)) {
|
|
197
|
+
tmp = $this.c31_1 ? Text_init_$Create$(innerInlines($this, node), Whitespace_PRE_WRAP_getInstance()) : Text_init_$Create$('');
|
|
198
|
+
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().f2e_1)) {
|
|
199
199
|
tmp = Text_init_$Create$(innerInlines($this, node), Whitespace_NORMAL_getInstance());
|
|
200
|
-
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().
|
|
201
|
-
tmp = $this.
|
|
202
|
-
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().q2e_1)) {
|
|
203
|
-
tmp = setext($this, $this.z30_1.l23('markdown.h1.rule'), $this.z30_1.i23('markdown.h1'), node);
|
|
204
|
-
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().r2e_1)) {
|
|
205
|
-
tmp = setext($this, $this.z30_1.l23('markdown.h2.rule'), $this.z30_1.i23('markdown.h2'), node);
|
|
200
|
+
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().i2e_1)) {
|
|
201
|
+
tmp = $this.d31_1 ? EmptyWidget_instance : Text_init_$Create$($this.b31_1.k23('markdown.link.destination').b1v(nodeText($this, node)), Whitespace_NORMAL_getInstance());
|
|
206
202
|
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().s2e_1)) {
|
|
207
|
-
tmp =
|
|
203
|
+
tmp = setext($this, $this.b31_1.n23('markdown.h1.rule'), $this.b31_1.k23('markdown.h1'), node);
|
|
208
204
|
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().t2e_1)) {
|
|
209
|
-
tmp =
|
|
205
|
+
tmp = setext($this, $this.b31_1.n23('markdown.h2.rule'), $this.b31_1.k23('markdown.h2'), node);
|
|
210
206
|
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().u2e_1)) {
|
|
211
|
-
tmp = atxHr($this, $this.
|
|
207
|
+
tmp = atxHr($this, $this.b31_1.n23('markdown.h1.rule'), $this.b31_1.k23('markdown.h1'), node);
|
|
212
208
|
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().v2e_1)) {
|
|
213
|
-
tmp = atxHr($this, $this.
|
|
209
|
+
tmp = atxHr($this, $this.b31_1.n23('markdown.h2.rule'), $this.b31_1.k23('markdown.h2'), node);
|
|
214
210
|
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().w2e_1)) {
|
|
215
|
-
tmp = atxHr($this, $this.
|
|
211
|
+
tmp = atxHr($this, $this.b31_1.n23('markdown.h3.rule'), $this.b31_1.k23('markdown.h3'), node);
|
|
216
212
|
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().x2e_1)) {
|
|
217
|
-
tmp = atxHr($this, $this.
|
|
218
|
-
} else if (equals(tmp0_subject,
|
|
213
|
+
tmp = atxHr($this, $this.b31_1.n23('markdown.h4.rule'), $this.b31_1.k23('markdown.h4'), node);
|
|
214
|
+
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().y2e_1)) {
|
|
215
|
+
tmp = atxHr($this, $this.b31_1.n23('markdown.h5.rule'), $this.b31_1.k23('markdown.h5'), node);
|
|
216
|
+
} else if (equals(tmp0_subject, MarkdownElementTypes_getInstance().z2e_1)) {
|
|
217
|
+
tmp = atxHr($this, $this.b31_1.n23('markdown.h6.rule'), $this.b31_1.k23('markdown.h6'), node);
|
|
218
|
+
} else if (equals(tmp0_subject, GFMElementTypes_getInstance().s2k_1)) {
|
|
219
219
|
tmp = table(MarkdownRenderer$parseStructure$lambda($this, node));
|
|
220
|
-
} else if (equals(tmp0_subject, Companion_getInstance().
|
|
220
|
+
} else if (equals(tmp0_subject, Companion_getInstance().b2g_1)) {
|
|
221
221
|
tmp = HorizontalRule_init_$Create$();
|
|
222
|
-
} else if (equals(tmp0_subject, Companion_getInstance().
|
|
223
|
-
tmp = $this.
|
|
224
|
-
} else if (equals(tmp0_subject, Companion_getInstance().
|
|
225
|
-
tmp = $this.
|
|
222
|
+
} else if (equals(tmp0_subject, Companion_getInstance().p2f_1)) {
|
|
223
|
+
tmp = $this.f31_1;
|
|
224
|
+
} else if (equals(tmp0_subject, Companion_getInstance().m2g_1)) {
|
|
225
|
+
tmp = $this.f31_1;
|
|
226
226
|
} else {
|
|
227
227
|
// Inline function 'kotlin.error' call
|
|
228
228
|
var message = 'Unexpected token when parsing structure: ' + toString(node);
|
|
@@ -231,93 +231,93 @@
|
|
|
231
231
|
return tmp;
|
|
232
232
|
}
|
|
233
233
|
function parseInlines($this, node) {
|
|
234
|
-
var tmp1_subject = node.
|
|
234
|
+
var tmp1_subject = node.y2g();
|
|
235
235
|
var tmp;
|
|
236
|
-
if (equals(tmp1_subject, MarkdownElementTypes_getInstance().
|
|
237
|
-
var tmp_0 = $this.
|
|
236
|
+
if (equals(tmp1_subject, MarkdownElementTypes_getInstance().d2e_1) || equals(tmp1_subject, GFMElementTypes_getInstance().v2k_1)) {
|
|
237
|
+
var tmp_0 = $this.b31_1.k23('markdown.code.span');
|
|
238
238
|
// Inline function 'kotlin.text.trim' call
|
|
239
|
-
var this_0 = substring($this.
|
|
239
|
+
var this_0 = substring($this.i31_1, node.b2h().c1(1).z2g(), last(node.b2h()).z2g());
|
|
240
240
|
var tmp$ret$0 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
241
|
-
tmp = tmp_0.
|
|
242
|
-
} else if (equals(tmp1_subject, GFMElementTypes_getInstance().
|
|
243
|
-
var tmp_1 = $this.
|
|
241
|
+
tmp = tmp_0.b1v(tmp$ret$0);
|
|
242
|
+
} else if (equals(tmp1_subject, GFMElementTypes_getInstance().w2k_1)) {
|
|
243
|
+
var tmp_1 = $this.b31_1.k23('markdown.code.block');
|
|
244
244
|
// Inline function 'kotlin.text.trim' call
|
|
245
|
-
var this_1 = substring($this.
|
|
245
|
+
var this_1 = substring($this.i31_1, node.b2h().c1(1).z2g(), last(node.b2h()).z2g());
|
|
246
246
|
var tmp$ret$1 = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()));
|
|
247
|
-
tmp = tmp_1.
|
|
248
|
-
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().
|
|
249
|
-
tmp = $this.
|
|
250
|
-
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().f2e_1)) {
|
|
251
|
-
tmp = $this.z30_1.i23('markdown.strong').z1u(innerInlines($this, node, 2));
|
|
252
|
-
} else if (equals(tmp1_subject, GFMElementTypes_getInstance().p2k_1)) {
|
|
253
|
-
tmp = $this.z30_1.i23('markdown.stikethrough').z1u(innerInlines($this, node, 2));
|
|
254
|
-
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().k2e_1)) {
|
|
255
|
-
tmp = $this.z30_1.i23('markdown.link.text').z1u(nodeText($this, node.z2g().c1(1)));
|
|
247
|
+
tmp = tmp_1.b1v(tmp$ret$1);
|
|
248
|
+
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().g2e_1)) {
|
|
249
|
+
tmp = $this.b31_1.k23('markdown.emph').b1v(innerInlines($this, node, 1));
|
|
256
250
|
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().h2e_1)) {
|
|
257
|
-
tmp = $this.
|
|
258
|
-
} else if (equals(tmp1_subject,
|
|
251
|
+
tmp = $this.b31_1.k23('markdown.strong').b1v(innerInlines($this, node, 2));
|
|
252
|
+
} else if (equals(tmp1_subject, GFMElementTypes_getInstance().r2k_1)) {
|
|
253
|
+
tmp = $this.b31_1.k23('markdown.stikethrough').b1v(innerInlines($this, node, 2));
|
|
254
|
+
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().m2e_1)) {
|
|
255
|
+
tmp = $this.b31_1.k23('markdown.link.text').b1v(nodeText($this, node.b2h().c1(1)));
|
|
256
|
+
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().j2e_1)) {
|
|
257
|
+
tmp = $this.b31_1.k23('markdown.link.destination').b1v(nodeText($this, node));
|
|
258
|
+
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().k2e_1)) {
|
|
259
259
|
var tmp_2;
|
|
260
|
-
var tmp2_safe_receiver = firstOrNull(node.
|
|
261
|
-
if (equals(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
260
|
+
var tmp2_safe_receiver = firstOrNull(node.b2h());
|
|
261
|
+
if (equals(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.y2g(), Companion_getInstance().k2f_1)) {
|
|
262
262
|
tmp_2 = 1;
|
|
263
263
|
} else {
|
|
264
264
|
tmp_2 = 0;
|
|
265
265
|
}
|
|
266
266
|
var drop = tmp_2;
|
|
267
|
-
var text = TextStyles_reset_getInstance().
|
|
268
|
-
tmp = $this.
|
|
269
|
-
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().
|
|
267
|
+
var text = TextStyles_reset_getInstance().b1v(innerInlines($this, node, drop));
|
|
268
|
+
tmp = $this.b31_1.k23('markdown.link.destination').b1v(text);
|
|
269
|
+
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().n2e_1)) {
|
|
270
270
|
tmp = renderInlineLink($this, node);
|
|
271
|
-
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().
|
|
271
|
+
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().o2e_1) || equals(tmp1_subject, MarkdownElementTypes_getInstance().p2e_1)) {
|
|
272
272
|
tmp = renderReferenceLink($this, node);
|
|
273
|
-
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().
|
|
273
|
+
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().q2e_1)) {
|
|
274
274
|
tmp = renderImageLink($this, node);
|
|
275
|
-
} else if (equals(tmp1_subject, Companion_getInstance().
|
|
276
|
-
tmp = $this.
|
|
277
|
-
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().
|
|
275
|
+
} else if (equals(tmp1_subject, Companion_getInstance().j2g_1) || (equals(tmp1_subject, GFMTokenTypes_getInstance().z2k_1) || equals(tmp1_subject, Companion_getInstance().i2g_1))) {
|
|
276
|
+
tmp = $this.b31_1.k23('markdown.link.text').b1v(nodeText($this, node));
|
|
277
|
+
} else if (equals(tmp1_subject, MarkdownElementTypes_getInstance().r2e_1)) {
|
|
278
278
|
tmp = innerInlines($this, node, 1);
|
|
279
|
-
} else if (equals(tmp1_subject, Companion_getInstance().
|
|
280
|
-
tmp = $this.
|
|
281
|
-
} else if (equals(tmp1_subject, Companion_getInstance().
|
|
279
|
+
} else if (equals(tmp1_subject, Companion_getInstance().k2g_1)) {
|
|
280
|
+
tmp = $this.c31_1 ? nodeText($this, node) : '';
|
|
281
|
+
} else if (equals(tmp1_subject, Companion_getInstance().c2f_1)) {
|
|
282
282
|
tmp = '';
|
|
283
|
-
} else if (equals(tmp1_subject, Companion_getInstance().
|
|
283
|
+
} else if (equals(tmp1_subject, Companion_getInstance().b2f_1)) {
|
|
284
284
|
tmp = drop_0(nodeText($this, node), 4);
|
|
285
|
-
} else if (equals(tmp1_subject, Companion_getInstance().
|
|
285
|
+
} else if (equals(tmp1_subject, Companion_getInstance().o2f_1)) {
|
|
286
286
|
tmp = '\x85';
|
|
287
|
-
} else if (equals(tmp1_subject, Companion_getInstance().
|
|
287
|
+
} else if (equals(tmp1_subject, Companion_getInstance().y2f_1)) {
|
|
288
288
|
tmp = '`';
|
|
289
|
-
} else if (equals(tmp1_subject, Companion_getInstance().
|
|
289
|
+
} else if (equals(tmp1_subject, Companion_getInstance().l2g_1)) {
|
|
290
290
|
tmp = '\uFFFD';
|
|
291
|
-
} else if (equals(tmp1_subject, Companion_getInstance().
|
|
291
|
+
} else if (equals(tmp1_subject, Companion_getInstance().x2f_1) || equals(tmp1_subject, Companion_getInstance().f2g_1) || (equals(tmp1_subject, Companion_getInstance().m2f_1) || equals(tmp1_subject, Companion_getInstance().f2f_1)) || (equals(tmp1_subject, Companion_getInstance().w2f_1) || equals(tmp1_subject, Companion_getInstance().n2f_1) || (equals(tmp1_subject, Companion_getInstance().l2f_1) || (equals(tmp1_subject, Companion_getInstance().d2f_1) || equals(tmp1_subject, Companion_getInstance().i2f_1)))) || (equals(tmp1_subject, Companion_getInstance().g2f_1) || equals(tmp1_subject, Companion_getInstance().k2f_1) || (equals(tmp1_subject, Companion_getInstance().j2f_1) || (equals(tmp1_subject, Companion_getInstance().h2f_1) || equals(tmp1_subject, Companion_getInstance().e2f_1))) || (equals(tmp1_subject, Companion_getInstance().a2f_1) || equals(tmp1_subject, Companion_getInstance().a2g_1) || (equals(tmp1_subject, Companion_getInstance().m2g_1) || (equals(tmp1_subject, GFMTokenTypes_getInstance().x2k_1) || equals(tmp1_subject, GFMTokenTypes_getInstance().c2l_1)))))) {
|
|
292
292
|
tmp = nodeText($this, node);
|
|
293
|
-
} else if (equals(tmp1_subject, Companion_getInstance().
|
|
293
|
+
} else if (equals(tmp1_subject, Companion_getInstance().p2f_1)) {
|
|
294
294
|
tmp = nodeText($this, node);
|
|
295
295
|
} else {
|
|
296
296
|
// Inline function 'kotlin.error' call
|
|
297
|
-
var message = 'Unexpected token when parsing inlines: ' + toString(node) + '; [' + node.
|
|
297
|
+
var message = 'Unexpected token when parsing inlines: ' + toString(node) + '; [' + node.y2g().toString() + ":'" + take(nodeText($this, node), 10) + "'}]";
|
|
298
298
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
299
299
|
}
|
|
300
300
|
return tmp;
|
|
301
301
|
}
|
|
302
302
|
function nodeText($this, $receiver, drop) {
|
|
303
303
|
drop = drop === VOID ? 0 : drop;
|
|
304
|
-
return substring($this.
|
|
304
|
+
return substring($this.i31_1, $receiver.z2g() + drop | 0, $receiver.a2h() - drop | 0);
|
|
305
305
|
}
|
|
306
306
|
function innerInlines($this, node, drop, dropLast) {
|
|
307
307
|
drop = drop === VOID ? 0 : drop;
|
|
308
308
|
dropLast = dropLast === VOID ? drop : dropLast;
|
|
309
|
-
var tmp = node.
|
|
309
|
+
var tmp = node.b2h().i2(drop, node.b2h().d1() - dropLast | 0);
|
|
310
310
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, MarkdownRenderer$innerInlines$lambda($this));
|
|
311
311
|
}
|
|
312
312
|
function parseListItems($this, node) {
|
|
313
313
|
// Inline function 'kotlin.collections.filter' call
|
|
314
|
-
var tmp0 = node.
|
|
314
|
+
var tmp0 = node.b2h();
|
|
315
315
|
// Inline function 'kotlin.collections.filterTo' call
|
|
316
316
|
var destination = ArrayList_init_$Create$_0();
|
|
317
317
|
var _iterator__ex2g4s = tmp0.r();
|
|
318
318
|
while (_iterator__ex2g4s.s()) {
|
|
319
319
|
var element = _iterator__ex2g4s.t();
|
|
320
|
-
if (equals(element.
|
|
320
|
+
if (equals(element.y2g(), MarkdownElementTypes_getInstance().z2d_1)) {
|
|
321
321
|
destination.v(element);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
@@ -328,10 +328,10 @@
|
|
|
328
328
|
while (_iterator__ex2g4s_0.s()) {
|
|
329
329
|
var item = _iterator__ex2g4s_0.t();
|
|
330
330
|
var tmp;
|
|
331
|
-
if (item.
|
|
331
|
+
if (item.b2h().d1() > 1 && equals(item.b2h().c1(1).y2g(), GFMTokenTypes_getInstance().a2l_1)) {
|
|
332
332
|
tmp = horizontalLayout(MarkdownRenderer$parseListItems$lambda($this, item));
|
|
333
333
|
} else {
|
|
334
|
-
tmp = parseBlocks($this, drop(item.
|
|
334
|
+
tmp = parseBlocks($this, drop(item.b2h(), 1));
|
|
335
335
|
}
|
|
336
336
|
var tmp$ret$5 = tmp;
|
|
337
337
|
destination_0.v(tmp$ret$5);
|
|
@@ -339,94 +339,94 @@
|
|
|
339
339
|
return destination_0;
|
|
340
340
|
}
|
|
341
341
|
function atxHr($this, bar, style, node) {
|
|
342
|
-
return node.
|
|
342
|
+
return node.b2h().d1() <= 1 ? $this.e31_1 : headerHr($this, Text_init_$Create$(style.b1v(atxContent($this, node)), Whitespace_NORMAL_getInstance()), bar, style);
|
|
343
343
|
}
|
|
344
344
|
function atxContent($this, node) {
|
|
345
|
-
var _destruct__k2r9zo = dropWs($this, node.
|
|
345
|
+
var _destruct__k2r9zo = dropWs($this, node.b2h().c1(1).b2h());
|
|
346
346
|
var drop = _destruct__k2r9zo.fa();
|
|
347
347
|
var dropLast = _destruct__k2r9zo.ga();
|
|
348
|
-
return innerInlines($this, node.
|
|
348
|
+
return innerInlines($this, node.b2h().c1(1), drop, dropLast);
|
|
349
349
|
}
|
|
350
350
|
function setext($this, bar, style, node) {
|
|
351
|
-
var _destruct__k2r9zo = dropWs($this, node.
|
|
351
|
+
var _destruct__k2r9zo = dropWs($this, node.b2h().c1(0).b2h());
|
|
352
352
|
var drop = _destruct__k2r9zo.fa();
|
|
353
353
|
var dropLast = _destruct__k2r9zo.ga();
|
|
354
|
-
var content = innerInlines($this, node.
|
|
355
|
-
return headerHr($this, Text_init_$Create$(style.
|
|
354
|
+
var content = innerInlines($this, node.b2h().c1(0), drop, dropLast);
|
|
355
|
+
return headerHr($this, Text_init_$Create$(style.b1v(content), Whitespace_NORMAL_getInstance()), bar, style);
|
|
356
356
|
}
|
|
357
357
|
function headerHr($this, content, bar, style) {
|
|
358
|
-
var tmp = HorizontalRule_init_$Create$(content, bar, TextStyle(style.
|
|
358
|
+
var tmp = HorizontalRule_init_$Create$(content, bar, TextStyle(style.c1y(), style.d1y()));
|
|
359
359
|
return withPadding(tmp, VOID, MarkdownRenderer$headerHr$lambda($this));
|
|
360
360
|
}
|
|
361
361
|
function dropWs($this, nodes) {
|
|
362
362
|
var tmp;
|
|
363
363
|
var tmp3_safe_receiver = firstOrNull(nodes);
|
|
364
|
-
if (equals(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.
|
|
364
|
+
if (equals(tmp3_safe_receiver == null ? null : tmp3_safe_receiver.y2g(), Companion_getInstance().m2g_1)) {
|
|
365
365
|
tmp = 1;
|
|
366
366
|
} else {
|
|
367
367
|
tmp = 0;
|
|
368
368
|
}
|
|
369
369
|
var drop = tmp;
|
|
370
|
-
var dropLast = nodes.d1() > 1 && equals(last(nodes).
|
|
370
|
+
var dropLast = nodes.d1() > 1 && equals(last(nodes).y2g(), Companion_getInstance().m2g_1) ? 1 : 0;
|
|
371
371
|
return to(drop, dropLast);
|
|
372
372
|
}
|
|
373
373
|
function parseTableRow($this, $receiver, node) {
|
|
374
|
-
return $receiver.
|
|
374
|
+
return $receiver.z28(MarkdownRenderer$parseTableRow$lambda(node, $this));
|
|
375
375
|
}
|
|
376
376
|
function parseTableAlignment($this, node) {
|
|
377
|
-
var headerSeparator = firstChildOfType(node, GFMTokenTypes_getInstance().
|
|
378
|
-
var tmp = $this.
|
|
377
|
+
var headerSeparator = firstChildOfType(node, GFMTokenTypes_getInstance().y2k_1);
|
|
378
|
+
var tmp = $this.g31_1.ic(nodeText($this, headerSeparator));
|
|
379
379
|
return map(tmp, MarkdownRenderer$parseTableAlignment$lambda);
|
|
380
380
|
}
|
|
381
381
|
function renderInlineLink($this, node) {
|
|
382
|
-
var text = TextStyles_reset_getInstance().
|
|
382
|
+
var text = TextStyles_reset_getInstance().b1v(ensureNotNull(findLinkText($this, node)));
|
|
383
383
|
var tmp0_elvis_lhs = findLinkDest($this, node);
|
|
384
384
|
var dest = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
385
385
|
var tmp;
|
|
386
|
-
if ($this.
|
|
386
|
+
if ($this.d31_1) {
|
|
387
387
|
// Inline function 'kotlin.text.isNotBlank' call
|
|
388
388
|
tmp = !isBlank(dest);
|
|
389
389
|
} else {
|
|
390
390
|
tmp = false;
|
|
391
391
|
}
|
|
392
392
|
if (tmp) {
|
|
393
|
-
var style = $this.
|
|
394
|
-
return style.
|
|
393
|
+
var style = $this.b31_1.k23('markdown.link.text').s1y(TextStyle(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, dest));
|
|
394
|
+
return style.b1v(text);
|
|
395
395
|
}
|
|
396
|
-
var parsedText = $this.
|
|
397
|
-
var parsedDest = $this.
|
|
396
|
+
var parsedText = $this.b31_1.k23('markdown.link.text').b1v(text);
|
|
397
|
+
var parsedDest = $this.b31_1.k23('markdown.link.destination').b1v('(' + dest + ')');
|
|
398
398
|
return parsedText + parsedDest;
|
|
399
399
|
}
|
|
400
400
|
function renderReferenceLink($this, node) {
|
|
401
|
-
if (!$this.
|
|
401
|
+
if (!$this.d31_1)
|
|
402
402
|
return innerInlines($this, node);
|
|
403
403
|
var label = ensureNotNull(findLinkLabel($this, node));
|
|
404
|
-
var tmp4_safe_receiver = $this.
|
|
405
|
-
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.
|
|
406
|
-
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.
|
|
404
|
+
var tmp4_safe_receiver = $this.j31_1;
|
|
405
|
+
var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.c2u('[' + label + ']');
|
|
406
|
+
var tmp6_safe_receiver = tmp5_safe_receiver == null ? null : tmp5_safe_receiver.z2t_1;
|
|
407
407
|
var hyperlink = tmp6_safe_receiver == null ? null : toString(tmp6_safe_receiver);
|
|
408
408
|
var tmp;
|
|
409
409
|
if (hyperlink == null) {
|
|
410
410
|
tmp = innerInlines($this, node);
|
|
411
411
|
} else {
|
|
412
|
-
var style = $this.
|
|
412
|
+
var style = $this.b31_1.k23('markdown.link.text').s1y(TextStyle(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, hyperlink));
|
|
413
413
|
var tmp7_safe_receiver = findLinkText($this, node);
|
|
414
414
|
var tmp_0;
|
|
415
415
|
if (tmp7_safe_receiver == null) {
|
|
416
416
|
tmp_0 = null;
|
|
417
417
|
} else {
|
|
418
418
|
// Inline function 'kotlin.let' call
|
|
419
|
-
tmp_0 = TextStyles_reset_getInstance().
|
|
419
|
+
tmp_0 = TextStyles_reset_getInstance().b1v(tmp7_safe_receiver);
|
|
420
420
|
}
|
|
421
421
|
var link = tmp_0;
|
|
422
|
-
tmp = style.
|
|
422
|
+
tmp = style.b1v(link == null ? label : link);
|
|
423
423
|
}
|
|
424
424
|
return tmp;
|
|
425
425
|
}
|
|
426
426
|
function renderImageLink($this, node) {
|
|
427
|
-
var tmp0_elvis_lhs = findChildOfType(node, MarkdownElementTypes_getInstance().
|
|
428
|
-
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? findChildOfType(node, MarkdownElementTypes_getInstance().
|
|
429
|
-
var tmp2_elvis_lhs = tmp1_elvis_lhs == null ? findChildOfType(node, MarkdownElementTypes_getInstance().
|
|
427
|
+
var tmp0_elvis_lhs = findChildOfType(node, MarkdownElementTypes_getInstance().n2e_1);
|
|
428
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? findChildOfType(node, MarkdownElementTypes_getInstance().o2e_1) : tmp0_elvis_lhs;
|
|
429
|
+
var tmp2_elvis_lhs = tmp1_elvis_lhs == null ? findChildOfType(node, MarkdownElementTypes_getInstance().p2e_1) : tmp1_elvis_lhs;
|
|
430
430
|
var tmp;
|
|
431
431
|
if (tmp2_elvis_lhs == null) {
|
|
432
432
|
return '';
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
tmp_2 = null;
|
|
456
456
|
} else {
|
|
457
457
|
// Inline function 'kotlin.let' call
|
|
458
|
-
tmp_2 = TextStyles_reset_getInstance().
|
|
458
|
+
tmp_2 = TextStyles_reset_getInstance().b1v(tmp9_safe_receiver);
|
|
459
459
|
}
|
|
460
460
|
var tmp3_elvis_lhs = tmp_2;
|
|
461
461
|
var tmp_3;
|
|
@@ -465,17 +465,17 @@
|
|
|
465
465
|
tmp_3 = tmp3_elvis_lhs;
|
|
466
466
|
}
|
|
467
467
|
var text = tmp_3;
|
|
468
|
-
return '\uD83D\uDDBC\uFE0F ' + $this.
|
|
468
|
+
return '\uD83D\uDDBC\uFE0F ' + $this.b31_1.k23('markdown.img.alt-text').b1v(text);
|
|
469
469
|
}
|
|
470
470
|
function findLinkLabel($this, node) {
|
|
471
|
-
var tmp10_safe_receiver = findChildOfType(node, MarkdownElementTypes_getInstance().
|
|
472
|
-
var tmp11_safe_receiver = tmp10_safe_receiver == null ? null : tmp10_safe_receiver.
|
|
471
|
+
var tmp10_safe_receiver = findChildOfType(node, MarkdownElementTypes_getInstance().j2e_1);
|
|
472
|
+
var tmp11_safe_receiver = tmp10_safe_receiver == null ? null : tmp10_safe_receiver.b2h();
|
|
473
473
|
var tmp12_safe_receiver = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.c1(1);
|
|
474
474
|
return tmp12_safe_receiver == null ? null : nodeText($this, tmp12_safe_receiver);
|
|
475
475
|
}
|
|
476
476
|
function findLinkDest($this, node) {
|
|
477
|
-
var tmp13_safe_receiver = findChildOfType(node, MarkdownElementTypes_getInstance().
|
|
478
|
-
var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.
|
|
477
|
+
var tmp13_safe_receiver = findChildOfType(node, MarkdownElementTypes_getInstance().k2e_1);
|
|
478
|
+
var tmp14_safe_receiver = tmp13_safe_receiver == null ? null : tmp13_safe_receiver.b2h();
|
|
479
479
|
var tmp;
|
|
480
480
|
if (tmp14_safe_receiver == null) {
|
|
481
481
|
tmp = null;
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
var _iterator__ex2g4s = tmp14_safe_receiver.r();
|
|
488
488
|
while (_iterator__ex2g4s.s()) {
|
|
489
489
|
var element = _iterator__ex2g4s.t();
|
|
490
|
-
if (equals(element.
|
|
490
|
+
if (equals(element.y2g(), Companion_getInstance().a2f_1) || equals(element.y2g(), GFMTokenTypes_getInstance().z2k_1)) {
|
|
491
491
|
tmp$ret$1 = element;
|
|
492
492
|
break $l$block;
|
|
493
493
|
}
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
return tmp15_safe_receiver == null ? null : nodeText($this, tmp15_safe_receiver);
|
|
501
501
|
}
|
|
502
502
|
function findLinkText($this, node) {
|
|
503
|
-
var tmp16_safe_receiver = findChildOfType(node, MarkdownElementTypes_getInstance().
|
|
503
|
+
var tmp16_safe_receiver = findChildOfType(node, MarkdownElementTypes_getInstance().m2e_1);
|
|
504
504
|
var tmp;
|
|
505
505
|
if (tmp16_safe_receiver == null) {
|
|
506
506
|
tmp = null;
|
|
@@ -518,41 +518,41 @@
|
|
|
518
518
|
var i = index;
|
|
519
519
|
index = index + 1 | 0;
|
|
520
520
|
var node = iterator.t();
|
|
521
|
-
if (equals(node.
|
|
521
|
+
if (equals(node.y2g(), Companion_getInstance().p2f_1) && (1 <= i ? i < get_lastIndex($nodes) : false) && !listOf_0([Companion_getInstance().p2f_1, Companion_getInstance().m2g_1]).u1($nodes.c1(i - 1 | 0).y2g())) {
|
|
522
522
|
continue $l$loop_0;
|
|
523
523
|
}
|
|
524
|
-
if (equals(node.
|
|
524
|
+
if (equals(node.y2g(), Companion_getInstance().m2g_1)) {
|
|
525
525
|
continue $l$loop_0;
|
|
526
526
|
}
|
|
527
|
-
$this$verticalLayout.
|
|
527
|
+
$this$verticalLayout.y26(parseStructure(this$0, node));
|
|
528
528
|
}
|
|
529
529
|
return Unit_instance;
|
|
530
530
|
};
|
|
531
531
|
}
|
|
532
532
|
function MarkdownRenderer$parseStructure$lambda$lambda($align) {
|
|
533
533
|
return function ($this$column) {
|
|
534
|
-
$this$column.
|
|
534
|
+
$this$column.j27($align);
|
|
535
535
|
return Unit_instance;
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
538
|
function MarkdownRenderer$parseStructure$lambda$lambda_0(this$0, $node) {
|
|
539
539
|
return function ($this$header) {
|
|
540
|
-
$this$header.
|
|
541
|
-
parseTableRow(this$0, $this$header, firstChildOfType($node, GFMElementTypes_getInstance().
|
|
540
|
+
$this$header.g27(this$0.b31_1.k23('markdown.table.header'));
|
|
541
|
+
parseTableRow(this$0, $this$header, firstChildOfType($node, GFMElementTypes_getInstance().t2k_1));
|
|
542
542
|
return Unit_instance;
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
545
|
function MarkdownRenderer$parseStructure$lambda$lambda_1(this$0, $node) {
|
|
546
546
|
return function ($this$body) {
|
|
547
|
-
$this$body.
|
|
547
|
+
$this$body.g27(this$0.b31_1.k23('markdown.table.body'));
|
|
548
548
|
// Inline function 'kotlin.collections.filter' call
|
|
549
|
-
var tmp0 = $node.
|
|
549
|
+
var tmp0 = $node.b2h();
|
|
550
550
|
// Inline function 'kotlin.collections.filterTo' call
|
|
551
551
|
var destination = ArrayList_init_$Create$_0();
|
|
552
552
|
var _iterator__ex2g4s = tmp0.r();
|
|
553
553
|
while (_iterator__ex2g4s.s()) {
|
|
554
554
|
var element = _iterator__ex2g4s.t();
|
|
555
|
-
if (equals(element.
|
|
555
|
+
if (equals(element.y2g(), GFMElementTypes_getInstance().u2k_1)) {
|
|
556
556
|
destination.v(element);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
}
|
|
568
568
|
function MarkdownRenderer$parseStructure$lambda(this$0, $node) {
|
|
569
569
|
return function ($this$table) {
|
|
570
|
-
$this$table.
|
|
570
|
+
$this$table.u28(this$0.b31_1.m23('markdown.table.ascii') ? Companion_getInstance_0().y20_1 : Companion_getInstance_0().s20_1);
|
|
571
571
|
// Inline function 'kotlin.sequences.forEachIndexed' call
|
|
572
572
|
var index = 0;
|
|
573
573
|
var _iterator__ex2g4s = parseTableAlignment(this$0, $node).r();
|
|
@@ -576,10 +576,10 @@
|
|
|
576
576
|
var _unary__edvuaz = index;
|
|
577
577
|
index = _unary__edvuaz + 1 | 0;
|
|
578
578
|
var i = checkIndexOverflow(_unary__edvuaz);
|
|
579
|
-
$this$table.
|
|
579
|
+
$this$table.v28(i, MarkdownRenderer$parseStructure$lambda$lambda(item));
|
|
580
580
|
}
|
|
581
|
-
$this$table.
|
|
582
|
-
$this$table.
|
|
581
|
+
$this$table.w28(MarkdownRenderer$parseStructure$lambda$lambda_0(this$0, $node));
|
|
582
|
+
$this$table.x28(MarkdownRenderer$parseStructure$lambda$lambda_1(this$0, $node));
|
|
583
583
|
return Unit_instance;
|
|
584
584
|
};
|
|
585
585
|
}
|
|
@@ -590,30 +590,30 @@
|
|
|
590
590
|
}
|
|
591
591
|
function MarkdownRenderer$parseListItems$lambda(this$0, $it) {
|
|
592
592
|
return function ($this$horizontalLayout) {
|
|
593
|
-
var content = removeSurrounding(ensureNotNull(this$0.
|
|
594
|
-
var checkboxString = isBlank(content) ? this$0.
|
|
595
|
-
$this$horizontalLayout.
|
|
596
|
-
$this$horizontalLayout.
|
|
593
|
+
var content = removeSurrounding(ensureNotNull(this$0.h31_1.gc(nodeText(this$0, $it.b2h().c1(1)))).m1(), '[', ']');
|
|
594
|
+
var checkboxString = isBlank(content) ? this$0.b31_1.n23('markdown.task.unchecked') : this$0.b31_1.n23('markdown.task.checked');
|
|
595
|
+
$this$horizontalLayout.y26(checkboxString);
|
|
596
|
+
$this$horizontalLayout.y26(parseBlocks(this$0, drop($it.b2h(), 2)));
|
|
597
597
|
return Unit_instance;
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
600
|
function MarkdownRenderer$headerHr$lambda(this$0) {
|
|
601
601
|
return function ($this$withPadding) {
|
|
602
|
-
$this$withPadding.
|
|
602
|
+
$this$withPadding.d2c(this$0.b31_1.o23('markdown.header.padding'));
|
|
603
603
|
return Unit_instance;
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
606
|
function MarkdownRenderer$parseTableRow$lambda($node, this$0) {
|
|
607
607
|
return function ($this$row) {
|
|
608
|
-
var _iterator__ex2g4s = $node.
|
|
608
|
+
var _iterator__ex2g4s = $node.b2h().r();
|
|
609
609
|
$l$loop: while (_iterator__ex2g4s.s()) {
|
|
610
610
|
var child = _iterator__ex2g4s.t();
|
|
611
|
-
if (!equals(child.
|
|
611
|
+
if (!equals(child.y2g(), GFMTokenTypes_getInstance().b2l_1))
|
|
612
612
|
continue $l$loop;
|
|
613
|
-
var _destruct__k2r9zo = dropWs(this$0, child.
|
|
613
|
+
var _destruct__k2r9zo = dropWs(this$0, child.b2h());
|
|
614
614
|
var drop = _destruct__k2r9zo.fa();
|
|
615
615
|
var dropLast = _destruct__k2r9zo.ga();
|
|
616
|
-
$this$row.
|
|
616
|
+
$this$row.n27(Text_init_$Create$(innerInlines(this$0, child, drop, dropLast), Whitespace_NORMAL_getInstance()));
|
|
617
617
|
}
|
|
618
618
|
return Unit_instance;
|
|
619
619
|
};
|
|
@@ -628,27 +628,27 @@
|
|
|
628
628
|
return tmp;
|
|
629
629
|
}
|
|
630
630
|
function MarkdownRenderer(input, theme, showHtml, hyperlinks) {
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
639
|
-
this.
|
|
640
|
-
}
|
|
641
|
-
protoOf(MarkdownRenderer).
|
|
631
|
+
this.b31_1 = theme;
|
|
632
|
+
this.c31_1 = showHtml;
|
|
633
|
+
this.d31_1 = hyperlinks;
|
|
634
|
+
this.e31_1 = Text_init_$Create$('\n', Whitespace_PRE_getInstance());
|
|
635
|
+
this.f31_1 = Text_init_$Create$('');
|
|
636
|
+
this.g31_1 = Regex_init_$Create$(':?-+:?');
|
|
637
|
+
this.h31_1 = Regex_init_$Create$('\\[[^\\]]\\]');
|
|
638
|
+
this.i31_1 = replace(input, '\r', '');
|
|
639
|
+
this.j31_1 = null;
|
|
640
|
+
}
|
|
641
|
+
protoOf(MarkdownRenderer).n26 = function () {
|
|
642
642
|
var flavour = new GFMFlavourDescriptor();
|
|
643
|
-
var parsedTree = MarkdownParser_init_$Create$(flavour).
|
|
643
|
+
var parsedTree = MarkdownParser_init_$Create$(flavour).e2v(this.i31_1);
|
|
644
644
|
return parseFile(this, parsedTree);
|
|
645
645
|
};
|
|
646
646
|
function firstChildOfType(_this__u8e3s4, type) {
|
|
647
647
|
return ensureNotNull(findChildOfType(_this__u8e3s4, type));
|
|
648
648
|
}
|
|
649
649
|
//region block: post-declaration
|
|
650
|
-
protoOf(BlockQuote).
|
|
651
|
-
protoOf(Markdown).
|
|
650
|
+
protoOf(BlockQuote).y23 = render$default;
|
|
651
|
+
protoOf(Markdown).y23 = render$default;
|
|
652
652
|
//endregion
|
|
653
653
|
//region block: exports
|
|
654
654
|
_.$_$ = _.$_$ || {};
|