@connectif/ui-components 2.0.17 → 2.0.18
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 +3 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24390,12 +24390,14 @@ var CodeOrMath = ({ children, ...props }) => {
|
|
|
24390
24390
|
const onlyText = maybe.length === 1 && typeof maybe[0] === "string";
|
|
24391
24391
|
return onlyText ? /* @__PURE__ */ jsx137("code", { ...props, children }) : /* @__PURE__ */ jsx137("span", { children: maybe });
|
|
24392
24392
|
};
|
|
24393
|
+
var escapeInlineUnderscores = (s) => s.replace(/(\S)_(\S)/g, "$1\\_$2");
|
|
24393
24394
|
var MarkdownRenderer = ({
|
|
24394
24395
|
text,
|
|
24395
24396
|
className,
|
|
24396
24397
|
...rest
|
|
24397
24398
|
}) => {
|
|
24398
|
-
const
|
|
24399
|
+
const protectedText = escapeInlineUnderscores(text || "");
|
|
24400
|
+
const normalized = normalizeLatexDelimiters(protectedText);
|
|
24399
24401
|
return /* @__PURE__ */ jsx137(
|
|
24400
24402
|
MarkdownContainer,
|
|
24401
24403
|
{
|