odaptos_design_system 2.0.347 → 2.0.348

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/dist/index.cjs CHANGED
@@ -356,9 +356,16 @@ const renderInlineMarkdown = (rawText) => {
356
356
  });
357
357
  };
358
358
  const renderHtmlUnderline = (text) => {
359
+ const renderUnderlineContent = (underlineText) => {
360
+ const tripleStarAsStrongNodes = underlineText.split(/\*\*\*([^*]+)\*\*\*/g).map((part, index) => {
361
+ if (!(index % 2 === 1)) return part;
362
+ return /* @__PURE__ */ react.default.createElement("strong", { key: `u-strong-em-from-triple-${index}` }, /* @__PURE__ */ react.default.createElement("em", null, part));
363
+ });
364
+ return renderStrongAndEm(tripleStarAsStrongNodes);
365
+ };
359
366
  return text.split(/<u>(.*?)<\/u>/g).map((part, index) => {
360
367
  if (!(index % 2 === 1)) return part;
361
- return /* @__PURE__ */ react.default.createElement("u", { key: `u-html-${index}` }, part);
368
+ return /* @__PURE__ */ react.default.createElement("u", { key: `u-html-${index}` }, renderUnderlineContent(part));
362
369
  });
363
370
  };
364
371
  const renderUnderline = (text) => {
@@ -373,6 +380,12 @@ const renderInlineMarkdown = (rawText) => {
373
380
  return /* @__PURE__ */ react.default.createElement("strong", { key: `strong-${index}` }, part);
374
381
  });
375
382
  };
383
+ const renderStrongAndEmphasis = (text) => {
384
+ return text.split(/\*\*\*([^*]+)\*\*\*/g).map((part, index) => {
385
+ if (!(index % 2 === 1)) return part;
386
+ return /* @__PURE__ */ react.default.createElement("strong", { key: `strong-em-${index}` }, /* @__PURE__ */ react.default.createElement("u", null, part));
387
+ });
388
+ };
376
389
  const renderEm = (text) => {
377
390
  return text.split(/\*([^*]+)\*/g).map((part, index) => {
378
391
  if (!(index % 2 === 1)) return part;
@@ -398,7 +411,10 @@ const renderInlineMarkdown = (rawText) => {
398
411
  return renderUnderline(htmlUnderlineNode);
399
412
  }).flatMap((underlineNode) => {
400
413
  if (typeof underlineNode !== "string") return [underlineNode];
401
- return renderStrong(underlineNode);
414
+ return renderStrongAndEmphasis(underlineNode);
415
+ }).flatMap((strongAndEmphasisNode) => {
416
+ if (typeof strongAndEmphasisNode !== "string") return [strongAndEmphasisNode];
417
+ return renderStrong(strongAndEmphasisNode);
402
418
  }).flatMap((strongNode) => {
403
419
  if (typeof strongNode !== "string") return [strongNode];
404
420
  return renderEm(strongNode);