@connectif/ui-components 2.0.11 → 2.0.12

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.js CHANGED
@@ -24230,11 +24230,8 @@ var Loader = ({
24230
24230
  var Loader_default = Loader;
24231
24231
 
24232
24232
  // src/components/markdown/MarkdownRenderer.tsx
24233
- import ReactMarkdown from "react-markdown";
24234
- import remarkGfm from "remark-gfm";
24233
+ import Markdown from "markdown-to-jsx";
24235
24234
  import { styled as styled8 } from "@mui/material/styles";
24236
- import remarkMath from "remark-math";
24237
- import rehypeKatex from "rehype-katex";
24238
24235
  import { jsx as jsx136 } from "react/jsx-runtime";
24239
24236
  var MarkdownContainer = styled8("div")(
24240
24237
  ({ color: color2, backgroundColor: backgroundColor2 = "transparent", variant }) => ({
@@ -24293,9 +24290,6 @@ var MarkdownContainer = styled8("div")(
24293
24290
  },
24294
24291
  "& a:hover": {
24295
24292
  textDecoration: "underline"
24296
- },
24297
- "& .katex .katex-html": {
24298
- display: "none"
24299
24293
  }
24300
24294
  })
24301
24295
  );
@@ -24303,11 +24297,11 @@ var MarkdownRenderer = ({
24303
24297
  text,
24304
24298
  ...rest
24305
24299
  }) => /* @__PURE__ */ jsx136(MarkdownContainer, { ...rest, children: /* @__PURE__ */ jsx136(
24306
- ReactMarkdown,
24300
+ Markdown,
24307
24301
  {
24308
- remarkPlugins: [remarkGfm, remarkMath],
24309
- rehypePlugins: [rehypeKatex],
24310
- skipHtml: true,
24302
+ options: {
24303
+ forceBlock: true
24304
+ },
24311
24305
  children: text
24312
24306
  }
24313
24307
  ) });