@elmethis/core 0.5.0 → 0.5.1
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.
|
@@ -91,7 +91,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
91
|
h(
|
|
92
92
|
AsyncElmBlockQuote,
|
|
93
93
|
{},
|
|
94
|
-
{
|
|
94
|
+
{
|
|
95
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
96
|
+
}
|
|
95
97
|
)
|
|
96
98
|
);
|
|
97
99
|
}
|
|
@@ -118,7 +120,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
120
|
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
119
121
|
AsyncElmInlineText,
|
|
120
122
|
{ strikethrough: true },
|
|
121
|
-
{
|
|
123
|
+
{
|
|
124
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
125
|
+
}
|
|
122
126
|
) : h(AsyncElmInlineText, { text: token.text, strikethrough: true })
|
|
123
127
|
);
|
|
124
128
|
break;
|
|
@@ -127,7 +131,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
131
|
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
128
132
|
AsyncElmInlineText,
|
|
129
133
|
{ italic: true },
|
|
130
|
-
{
|
|
134
|
+
{
|
|
135
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
136
|
+
}
|
|
131
137
|
) : h(AsyncElmInlineText, { text: token.text, italic: true })
|
|
132
138
|
);
|
|
133
139
|
break;
|
|
@@ -139,7 +145,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
139
145
|
h(
|
|
140
146
|
AsyncElmHeading,
|
|
141
147
|
{ level: token.depth },
|
|
142
|
-
{
|
|
148
|
+
{
|
|
149
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
150
|
+
}
|
|
143
151
|
)
|
|
144
152
|
);
|
|
145
153
|
} else {
|
|
@@ -168,7 +176,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
168
176
|
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
169
177
|
AsyncElmInlineText,
|
|
170
178
|
{ href: token.href },
|
|
171
|
-
{
|
|
179
|
+
{
|
|
180
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
181
|
+
}
|
|
172
182
|
) : h(AsyncElmInlineText, { text: token.text, href: token.href })
|
|
173
183
|
);
|
|
174
184
|
break;
|
|
@@ -182,13 +192,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
182
192
|
{
|
|
183
193
|
listStyle: token.ordered ? "ordered" : "unordered"
|
|
184
194
|
},
|
|
185
|
-
{ default: listItems }
|
|
195
|
+
{ default: () => listItems }
|
|
186
196
|
)
|
|
187
197
|
);
|
|
188
198
|
break;
|
|
189
199
|
case "list_item":
|
|
190
200
|
results.push(
|
|
191
|
-
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
201
|
+
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
202
|
+
"li",
|
|
203
|
+
{},
|
|
204
|
+
{
|
|
205
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
206
|
+
}
|
|
207
|
+
) : h("li", { text: token.text })
|
|
192
208
|
);
|
|
193
209
|
break;
|
|
194
210
|
case "paragraph":
|
|
@@ -197,7 +213,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
197
213
|
h(
|
|
198
214
|
AsyncElmParagraph,
|
|
199
215
|
{},
|
|
200
|
-
{
|
|
216
|
+
{
|
|
217
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
218
|
+
}
|
|
201
219
|
)
|
|
202
220
|
);
|
|
203
221
|
}
|
|
@@ -209,7 +227,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
209
227
|
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
210
228
|
AsyncElmInlineText,
|
|
211
229
|
{ bold: true },
|
|
212
|
-
{
|
|
230
|
+
{
|
|
231
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
232
|
+
}
|
|
213
233
|
) : h(AsyncElmInlineText, { text: token.text, bold: true })
|
|
214
234
|
);
|
|
215
235
|
break;
|
|
@@ -220,23 +240,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
240
|
(cell) => h(
|
|
221
241
|
AsyncElmTableCell,
|
|
222
242
|
{},
|
|
223
|
-
{ default: renderByToken({ tokens: cell.tokens }) }
|
|
243
|
+
{ default: () => renderByToken({ tokens: cell.tokens }) }
|
|
224
244
|
)
|
|
225
245
|
);
|
|
226
246
|
const headerRow = h(
|
|
227
247
|
AsyncElmTableRow,
|
|
228
248
|
{},
|
|
229
|
-
{ default: renderTableCells({ cells: token.header }) }
|
|
249
|
+
{ default: () => renderTableCells({ cells: token.header }) }
|
|
230
250
|
);
|
|
231
251
|
const bodyRows = token.rows.map(
|
|
232
|
-
(row) => h(
|
|
252
|
+
(row) => h(
|
|
253
|
+
AsyncElmTableRow,
|
|
254
|
+
{},
|
|
255
|
+
{ default: () => renderTableCells({ cells: row }) }
|
|
256
|
+
)
|
|
233
257
|
);
|
|
234
258
|
const table = h(
|
|
235
259
|
AsyncElmTable,
|
|
236
260
|
{},
|
|
237
261
|
{
|
|
238
|
-
header: h(AsyncElmTableHeader, {}, { default: headerRow }),
|
|
239
|
-
body: h(AsyncElmTableBody, {}, { default: bodyRows })
|
|
262
|
+
header: () => h(AsyncElmTableHeader, {}, { default: () => headerRow }),
|
|
263
|
+
body: () => h(AsyncElmTableBody, {}, { default: () => bodyRows })
|
|
240
264
|
}
|
|
241
265
|
);
|
|
242
266
|
results.push(table);
|
|
@@ -246,7 +270,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
246
270
|
token.tokens != null && token.tokens.length !== 0 ? h(
|
|
247
271
|
AsyncElmInlineText,
|
|
248
272
|
{},
|
|
249
|
-
{
|
|
273
|
+
{
|
|
274
|
+
default: () => renderByToken({ tokens: token.tokens })
|
|
275
|
+
}
|
|
250
276
|
) : h(AsyncElmInlineText, { text: token.text })
|
|
251
277
|
);
|
|
252
278
|
break;
|