@fe-free/core 2.1.2 → 2.1.3
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/CHANGELOG.md +7 -0
- package/package.json +2 -2
- package/src/markdown/chart.tsx +5 -1
- package/src/use_localforage_state.tsx +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fe-free/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"author": "",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"remark-gfm": "^4.0.1",
|
|
40
40
|
"vanilla-jsoneditor": "^0.23.1",
|
|
41
41
|
"zustand": "^4.5.4",
|
|
42
|
-
"@fe-free/tool": "2.1.
|
|
42
|
+
"@fe-free/tool": "2.1.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@ant-design/pro-components": "^2.8.7",
|
package/src/markdown/chart.tsx
CHANGED
|
@@ -251,9 +251,13 @@ function ChartBlockBase(props: any) {
|
|
|
251
251
|
function ChartBlock(props: any) {
|
|
252
252
|
const { children } = props;
|
|
253
253
|
|
|
254
|
+
// 大模型会返回一些奇怪字符,需要去掉
|
|
255
|
+
// 不间断空格
|
|
256
|
+
const content = children.replace(/ /g, '');
|
|
257
|
+
|
|
254
258
|
return (
|
|
255
259
|
<ErrorBoundary>
|
|
256
|
-
<ChartBlockBase>{
|
|
260
|
+
<ChartBlockBase>{content}</ChartBlockBase>
|
|
257
261
|
</ErrorBoundary>
|
|
258
262
|
);
|
|
259
263
|
}
|