We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c19c1a8 + 9ccacf2 commit f5c0a03Copy full SHA for f5c0a03
src/index.tsx
@@ -243,7 +243,14 @@ function renderTags(tags: Array<TagDescription>) {
243
}"`
244
)
245
.join("");
246
- const children = tag.props.children;
+
247
+ let children = tag.props.children;
248
249
+ if (Array.isArray(children)) {
250
+ // in JavaScript, strings are concatenated with comma which is not what we want
251
+ // we should join them manually instead
252
+ children = children.join("");
253
+ }
254
if (tag.setting?.close) {
255
return `<${tag.tag} data-sm="${tag.id}"${props}>${
256
// @ts-expect-error
0 commit comments