@lobehub/ui 2.11.3 → 2.11.5

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.
@@ -33,12 +33,14 @@ var Markdown = /*#__PURE__*/memo(function (_ref) {
33
33
  fullFeaturedCodeBlock = _ref.fullFeaturedCodeBlock,
34
34
  onDoubleClick = _ref.onDoubleClick,
35
35
  animated = _ref.animated,
36
- eLatex = _ref.enableLatex,
37
- eMermaid = _ref.enableMermaid,
36
+ _ref$enableLatex = _ref.enableLatex,
37
+ enableLatex = _ref$enableLatex === void 0 ? true : _ref$enableLatex,
38
+ _ref$enableMermaid = _ref.enableMermaid,
39
+ enableMermaid = _ref$enableMermaid === void 0 ? true : _ref$enableMermaid,
38
40
  enableImageGallery = _ref.enableImageGallery,
39
41
  enableCustomFootnotes = _ref.enableCustomFootnotes,
40
- eGithubAlert = _ref.enableGithubAlert,
41
- eStream = _ref.enableStream,
42
+ enableGithubAlert = _ref.enableGithubAlert,
43
+ enableStream = _ref.enableStream,
42
44
  componentProps = _ref.componentProps,
43
45
  allowHtml = _ref.allowHtml,
44
46
  _ref$fontSize = _ref.fontSize,
@@ -67,10 +69,6 @@ var Markdown = /*#__PURE__*/memo(function (_ref) {
67
69
  _useState2 = _slicedToArray(_useState, 2),
68
70
  delayedAnimated = _useState2[0],
69
71
  setDelayedAnimated = _useState2[1];
70
- var enableLatex = Boolean(typeof eLatex === 'boolean' && eLatex) || children.includes('$');
71
- var enableMermaid = Boolean(typeof eMermaid === 'boolean' && eMermaid) || children.includes('```mermaid');
72
- var enableGithubAlert = Boolean(typeof eGithubAlert === 'boolean' && eGithubAlert) || children.includes('> [!');
73
- var enableStream = Boolean(typeof eStream === 'boolean' && eStream) || delayedAnimated || !children.includes('[^');
74
72
 
75
73
  // Watch for changes in animated prop
76
74
  useEffect(function () {
@@ -1,4 +1,3 @@
1
- import { fixMarkdownEmphasisSpacing } from "./fixMarkdownEmphasisSpacing";
2
1
  import { preprocessLaTeX } from "./latex";
3
2
 
4
3
  // Cache configuration
@@ -134,5 +133,5 @@ export var preprocessContent = function preprocessContent(str) {
134
133
  if (enableCustomFootnotes) {
135
134
  content = transformCitations(content, citationsLength);
136
135
  }
137
- return fixMarkdownEmphasisSpacing(content);
136
+ return content;
138
137
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "2.11.3",
3
+ "version": "2.11.5",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",