@yushaw/sanqian-chat 0.2.14 → 0.2.15

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.
@@ -6662,7 +6662,7 @@ var MarkdownRenderer = (0, import_react17.memo)(function MarkdownRenderer2({
6662
6662
  ];
6663
6663
  }, []);
6664
6664
  const remarkPlugins = (0, import_react17.useMemo)(() => {
6665
- return [import_remark_gfm.default];
6665
+ return [import_remark_gfm.default, import_streamdown.defaultRemarkPlugins.math];
6666
6666
  }, []);
6667
6667
  const customComponents = (0, import_react17.useMemo)(() => {
6668
6668
  const comps = {};
@@ -6556,7 +6556,7 @@ import { memo as memo6 } from "react";
6556
6556
 
6557
6557
  // src/renderer/renderers/MarkdownRenderer.tsx
6558
6558
  import { memo as memo3, useMemo as useMemo5 } from "react";
6559
- import { Streamdown, defaultRehypePlugins } from "streamdown";
6559
+ import { Streamdown, defaultRehypePlugins, defaultRemarkPlugins } from "streamdown";
6560
6560
  import { harden } from "rehype-harden";
6561
6561
  import remarkGfm from "remark-gfm";
6562
6562
  import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
@@ -6583,7 +6583,7 @@ var MarkdownRenderer = memo3(function MarkdownRenderer2({
6583
6583
  ];
6584
6584
  }, []);
6585
6585
  const remarkPlugins = useMemo5(() => {
6586
- return [remarkGfm];
6586
+ return [remarkGfm, defaultRemarkPlugins.math];
6587
6587
  }, []);
6588
6588
  const customComponents = useMemo5(() => {
6589
6589
  const comps = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yushaw/sanqian-chat",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "Floating chat window SDK for Sanqian AI Assistant",
5
5
  "main": "./dist/main/index.js",
6
6
  "types": "./dist/main/index.d.ts",