balibabu commited on
Commit
8259c8d
·
1 Parent(s): 94a8e08

fix: Fixed the issue of api markdown document display being messy #2346 (#3212)

Browse files

### What problem does this PR solve?

fix: Fixed the issue of api markdown document display being messy #2346

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

web/package-lock.json CHANGED
@@ -14,6 +14,7 @@
14
  "@monaco-editor/react": "^4.6.0",
15
  "@tanstack/react-query": "^5.40.0",
16
  "@tanstack/react-query-devtools": "^5.51.5",
 
17
  "ahooks": "^3.7.10",
18
  "antd": "^5.12.7",
19
  "axios": "^1.6.3",
@@ -5403,6 +5404,11 @@
5403
  "resolved": "https://registry.npmmirror.com/@types/parse-json/-/parse-json-4.0.2.tgz",
5404
  "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw=="
5405
  },
 
 
 
 
 
5406
  "node_modules/@types/prop-types": {
5407
  "version": "15.7.11",
5408
  "resolved": "https://registry.npmmirror.com/@types/prop-types/-/prop-types-15.7.11.tgz",
@@ -5837,6 +5843,41 @@
5837
  "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
5838
  }
5839
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5840
  "node_modules/@umijs/ast": {
5841
  "version": "4.2.3",
5842
  "resolved": "https://registry.npmmirror.com/@umijs/ast/-/ast-4.2.3.tgz",
@@ -8602,6 +8643,15 @@
8602
  "resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz",
8603
  "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
8604
  },
 
 
 
 
 
 
 
 
 
8605
  "node_modules/bezier-js": {
8606
  "version": "6.1.4",
8607
  "resolved": "https://registry.npmmirror.com/bezier-js/-/bezier-js-6.1.4.tgz",
@@ -10431,6 +10481,21 @@
10431
  "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==",
10432
  "dev": true
10433
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10434
  "node_modules/css-to-react-native": {
10435
  "version": "3.2.0",
10436
  "resolved": "https://registry.npmmirror.com/css-to-react-native/-/css-to-react-native-3.2.0.tgz",
@@ -11329,6 +11394,18 @@
11329
  "node": ">=8"
11330
  }
11331
  },
 
 
 
 
 
 
 
 
 
 
 
 
11332
  "node_modules/doctrine": {
11333
  "version": "3.0.0",
11334
  "resolved": "https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz",
@@ -13610,6 +13687,11 @@
13610
  "resolved": "https://registry.npmmirror.com/git-hooks-list/-/git-hooks-list-3.1.0.tgz",
13611
  "integrity": "sha512-LF8VeHeR7v+wAbXqfgRlTSX/1BJR9Q1vEMR8JAz1cEg6GX07+zyj3sAdDvYjj/xnlIfVuGgj4qBei1K3hKH+PA=="
13612
  },
 
 
 
 
 
13613
  "node_modules/gl-matrix": {
13614
  "version": "3.4.3",
13615
  "resolved": "https://registry.npmmirror.com/gl-matrix/-/gl-matrix-3.4.3.tgz",
@@ -13994,6 +14076,23 @@
13994
  "node": ">= 0.4"
13995
  }
13996
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13997
  "node_modules/hast-util-from-parse5": {
13998
  "version": "8.0.1",
13999
  "resolved": "https://registry.npmmirror.com/hast-util-from-parse5/-/hast-util-from-parse5-8.0.1.tgz",
@@ -14041,6 +14140,42 @@
14041
  "url": "https://opencollective.com/unified"
14042
  }
14043
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14044
  "node_modules/hast-util-parse-selector": {
14045
  "version": "2.2.5",
14046
  "resolved": "https://registry.npmmirror.com/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz",
@@ -14070,6 +14205,32 @@
14070
  "url": "https://opencollective.com/unified"
14071
  }
14072
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14073
  "node_modules/hast-util-to-jsx-runtime": {
14074
  "version": "2.3.0",
14075
  "resolved": "https://registry.npmmirror.com/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.0.tgz",
@@ -14110,6 +14271,18 @@
14110
  "url": "https://opencollective.com/unified"
14111
  }
14112
  },
 
 
 
 
 
 
 
 
 
 
 
 
14113
  "node_modules/hast-util-whitespace": {
14114
  "version": "3.0.0",
14115
  "resolved": "https://registry.npmmirror.com/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",
@@ -20933,6 +21106,11 @@
20933
  "node": ">= 0.10"
20934
  }
20935
  },
 
 
 
 
 
20936
  "node_modules/parse5": {
20937
  "version": "7.1.2",
20938
  "resolved": "https://registry.npmmirror.com/parse5/-/parse5-7.1.2.tgz",
@@ -23969,6 +24147,137 @@
23969
  "node": ">= 0.4"
23970
  }
23971
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23972
  "node_modules/rehype-raw": {
23973
  "version": "7.0.0",
23974
  "resolved": "https://registry.npmmirror.com/rehype-raw/-/rehype-raw-7.0.0.tgz",
@@ -23983,6 +24292,38 @@
23983
  "url": "https://opencollective.com/unified"
23984
  }
23985
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23986
  "node_modules/relateurl": {
23987
  "version": "0.2.7",
23988
  "resolved": "https://registry.npmmirror.com/relateurl/-/relateurl-0.2.7.tgz",
@@ -24021,6 +24362,20 @@
24021
  "unified": "^11.0.0"
24022
  }
24023
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24024
  "node_modules/remark-loader": {
24025
  "version": "6.0.0",
24026
  "resolved": "https://registry.npmmirror.com/remark-loader/-/remark-loader-6.0.0.tgz",
@@ -27406,6 +27761,16 @@
27406
  "node": ">=0.10.0"
27407
  }
27408
  },
 
 
 
 
 
 
 
 
 
 
27409
  "node_modules/unist-util-is": {
27410
  "version": "6.0.0",
27411
  "resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
 
14
  "@monaco-editor/react": "^4.6.0",
15
  "@tanstack/react-query": "^5.40.0",
16
  "@tanstack/react-query-devtools": "^5.51.5",
17
+ "@uiw/react-markdown-preview": "^5.1.3",
18
  "ahooks": "^3.7.10",
19
  "antd": "^5.12.7",
20
  "axios": "^1.6.3",
 
5404
  "resolved": "https://registry.npmmirror.com/@types/parse-json/-/parse-json-4.0.2.tgz",
5405
  "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw=="
5406
  },
5407
+ "node_modules/@types/prismjs": {
5408
+ "version": "1.26.5",
5409
+ "resolved": "https://registry.npmmirror.com/@types/prismjs/-/prismjs-1.26.5.tgz",
5410
+ "integrity": "sha512-AUZTa7hQ2KY5L7AmtSiqxlhWxb4ina0yd8hNbl4TWuqnv/pFP0nDMb3YrfSBf4hJVGLh2YEIBfKaBW/9UEl6IQ=="
5411
+ },
5412
  "node_modules/@types/prop-types": {
5413
  "version": "15.7.11",
5414
  "resolved": "https://registry.npmmirror.com/@types/prop-types/-/prop-types-15.7.11.tgz",
 
5843
  "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
5844
  }
5845
  },
5846
+ "node_modules/@uiw/copy-to-clipboard": {
5847
+ "version": "1.0.17",
5848
+ "resolved": "https://registry.npmmirror.com/@uiw/copy-to-clipboard/-/copy-to-clipboard-1.0.17.tgz",
5849
+ "integrity": "sha512-O2GUHV90Iw2VrSLVLK0OmNIMdZ5fgEg4NhvtwINsX+eZ/Wf6DWD0TdsK9xwV7dNRnK/UI2mQtl0a2/kRgm1m1A==",
5850
+ "funding": {
5851
+ "url": "https://jaywcjlove.github.io/#/sponsor"
5852
+ }
5853
+ },
5854
+ "node_modules/@uiw/react-markdown-preview": {
5855
+ "version": "5.1.3",
5856
+ "resolved": "https://registry.npmmirror.com/@uiw/react-markdown-preview/-/react-markdown-preview-5.1.3.tgz",
5857
+ "integrity": "sha512-jV02wO4XHWFk54kz7sLqOkdPgJLttSfKLyen47XgjcyGgQXU2I4WJBygmdpV2AT9m/MiQ8qrN1Y+E5Syv9ZDpw==",
5858
+ "dependencies": {
5859
+ "@babel/runtime": "^7.17.2",
5860
+ "@uiw/copy-to-clipboard": "~1.0.12",
5861
+ "react-markdown": "~9.0.1",
5862
+ "rehype-attr": "~3.0.1",
5863
+ "rehype-autolink-headings": "~7.1.0",
5864
+ "rehype-ignore": "^2.0.0",
5865
+ "rehype-prism-plus": "2.0.0",
5866
+ "rehype-raw": "^7.0.0",
5867
+ "rehype-rewrite": "~4.0.0",
5868
+ "rehype-slug": "~6.0.0",
5869
+ "remark-gfm": "~4.0.0",
5870
+ "remark-github-blockquote-alert": "^1.0.0",
5871
+ "unist-util-visit": "^5.0.0"
5872
+ },
5873
+ "funding": {
5874
+ "url": "https://jaywcjlove.github.io/#/sponsor"
5875
+ },
5876
+ "peerDependencies": {
5877
+ "react": ">=16.8.0",
5878
+ "react-dom": ">=16.8.0"
5879
+ }
5880
+ },
5881
  "node_modules/@umijs/ast": {
5882
  "version": "4.2.3",
5883
  "resolved": "https://registry.npmmirror.com/@umijs/ast/-/ast-4.2.3.tgz",
 
8643
  "resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz",
8644
  "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="
8645
  },
8646
+ "node_modules/bcp-47-match": {
8647
+ "version": "2.0.3",
8648
+ "resolved": "https://registry.npmmirror.com/bcp-47-match/-/bcp-47-match-2.0.3.tgz",
8649
+ "integrity": "sha512-JtTezzbAibu8G0R9op9zb3vcWZd9JF6M0xOYGPn0fNCd7wOpRB1mU2mH9T8gaBGbAAyIIVgB2G7xG0GP98zMAQ==",
8650
+ "funding": {
8651
+ "type": "github",
8652
+ "url": "https://github.com/sponsors/wooorm"
8653
+ }
8654
+ },
8655
  "node_modules/bezier-js": {
8656
  "version": "6.1.4",
8657
  "resolved": "https://registry.npmmirror.com/bezier-js/-/bezier-js-6.1.4.tgz",
 
10481
  "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==",
10482
  "dev": true
10483
  },
10484
+ "node_modules/css-selector-parser": {
10485
+ "version": "3.0.5",
10486
+ "resolved": "https://registry.npmmirror.com/css-selector-parser/-/css-selector-parser-3.0.5.tgz",
10487
+ "integrity": "sha512-3itoDFbKUNx1eKmVpYMFyqKX04Ww9osZ+dLgrk6GEv6KMVeXUhUnp4I5X+evw+u3ZxVU6RFXSSRxlTeMh8bA+g==",
10488
+ "funding": [
10489
+ {
10490
+ "type": "github",
10491
+ "url": "https://github.com/sponsors/mdevils"
10492
+ },
10493
+ {
10494
+ "type": "patreon",
10495
+ "url": "https://patreon.com/mdevils"
10496
+ }
10497
+ ]
10498
+ },
10499
  "node_modules/css-to-react-native": {
10500
  "version": "3.2.0",
10501
  "resolved": "https://registry.npmmirror.com/css-to-react-native/-/css-to-react-native-3.2.0.tgz",
 
11394
  "node": ">=8"
11395
  }
11396
  },
11397
+ "node_modules/direction": {
11398
+ "version": "2.0.1",
11399
+ "resolved": "https://registry.npmmirror.com/direction/-/direction-2.0.1.tgz",
11400
+ "integrity": "sha512-9S6m9Sukh1cZNknO1CWAr2QAWsbKLafQiyM5gZ7VgXHeuaoUwffKN4q6NC4A/Mf9iiPlOXQEKW/Mv/mh9/3YFA==",
11401
+ "bin": {
11402
+ "direction": "cli.js"
11403
+ },
11404
+ "funding": {
11405
+ "type": "github",
11406
+ "url": "https://github.com/sponsors/wooorm"
11407
+ }
11408
+ },
11409
  "node_modules/doctrine": {
11410
  "version": "3.0.0",
11411
  "resolved": "https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz",
 
13687
  "resolved": "https://registry.npmmirror.com/git-hooks-list/-/git-hooks-list-3.1.0.tgz",
13688
  "integrity": "sha512-LF8VeHeR7v+wAbXqfgRlTSX/1BJR9Q1vEMR8JAz1cEg6GX07+zyj3sAdDvYjj/xnlIfVuGgj4qBei1K3hKH+PA=="
13689
  },
13690
+ "node_modules/github-slugger": {
13691
+ "version": "2.0.0",
13692
+ "resolved": "https://registry.npmmirror.com/github-slugger/-/github-slugger-2.0.0.tgz",
13693
+ "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw=="
13694
+ },
13695
  "node_modules/gl-matrix": {
13696
  "version": "3.4.3",
13697
  "resolved": "https://registry.npmmirror.com/gl-matrix/-/gl-matrix-3.4.3.tgz",
 
14076
  "node": ">= 0.4"
14077
  }
14078
  },
14079
+ "node_modules/hast-util-from-html": {
14080
+ "version": "2.0.3",
14081
+ "resolved": "https://registry.npmmirror.com/hast-util-from-html/-/hast-util-from-html-2.0.3.tgz",
14082
+ "integrity": "sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==",
14083
+ "dependencies": {
14084
+ "@types/hast": "^3.0.0",
14085
+ "devlop": "^1.1.0",
14086
+ "hast-util-from-parse5": "^8.0.0",
14087
+ "parse5": "^7.0.0",
14088
+ "vfile": "^6.0.0",
14089
+ "vfile-message": "^4.0.0"
14090
+ },
14091
+ "funding": {
14092
+ "type": "opencollective",
14093
+ "url": "https://opencollective.com/unified"
14094
+ }
14095
+ },
14096
  "node_modules/hast-util-from-parse5": {
14097
  "version": "8.0.1",
14098
  "resolved": "https://registry.npmmirror.com/hast-util-from-parse5/-/hast-util-from-parse5-8.0.1.tgz",
 
14140
  "url": "https://opencollective.com/unified"
14141
  }
14142
  },
14143
+ "node_modules/hast-util-has-property": {
14144
+ "version": "3.0.0",
14145
+ "resolved": "https://registry.npmmirror.com/hast-util-has-property/-/hast-util-has-property-3.0.0.tgz",
14146
+ "integrity": "sha512-MNilsvEKLFpV604hwfhVStK0usFY/QmM5zX16bo7EjnAEGofr5YyI37kzopBlZJkHD4t887i+q/C8/tr5Q94cA==",
14147
+ "dependencies": {
14148
+ "@types/hast": "^3.0.0"
14149
+ },
14150
+ "funding": {
14151
+ "type": "opencollective",
14152
+ "url": "https://opencollective.com/unified"
14153
+ }
14154
+ },
14155
+ "node_modules/hast-util-heading-rank": {
14156
+ "version": "3.0.0",
14157
+ "resolved": "https://registry.npmmirror.com/hast-util-heading-rank/-/hast-util-heading-rank-3.0.0.tgz",
14158
+ "integrity": "sha512-EJKb8oMUXVHcWZTDepnr+WNbfnXKFNf9duMesmr4S8SXTJBJ9M4Yok08pu9vxdJwdlGRhVumk9mEhkEvKGifwA==",
14159
+ "dependencies": {
14160
+ "@types/hast": "^3.0.0"
14161
+ },
14162
+ "funding": {
14163
+ "type": "opencollective",
14164
+ "url": "https://opencollective.com/unified"
14165
+ }
14166
+ },
14167
+ "node_modules/hast-util-is-element": {
14168
+ "version": "3.0.0",
14169
+ "resolved": "https://registry.npmmirror.com/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz",
14170
+ "integrity": "sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==",
14171
+ "dependencies": {
14172
+ "@types/hast": "^3.0.0"
14173
+ },
14174
+ "funding": {
14175
+ "type": "opencollective",
14176
+ "url": "https://opencollective.com/unified"
14177
+ }
14178
+ },
14179
  "node_modules/hast-util-parse-selector": {
14180
  "version": "2.2.5",
14181
  "resolved": "https://registry.npmmirror.com/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz",
 
14205
  "url": "https://opencollective.com/unified"
14206
  }
14207
  },
14208
+ "node_modules/hast-util-select": {
14209
+ "version": "6.0.3",
14210
+ "resolved": "https://registry.npmmirror.com/hast-util-select/-/hast-util-select-6.0.3.tgz",
14211
+ "integrity": "sha512-OVRQlQ1XuuLP8aFVLYmC2atrfWHS5UD3shonxpnyrjcCkwtvmt/+N6kYJdcY4mkMJhxp4kj2EFIxQ9kvkkt/eQ==",
14212
+ "dependencies": {
14213
+ "@types/hast": "^3.0.0",
14214
+ "@types/unist": "^3.0.0",
14215
+ "bcp-47-match": "^2.0.0",
14216
+ "comma-separated-tokens": "^2.0.0",
14217
+ "css-selector-parser": "^3.0.0",
14218
+ "devlop": "^1.0.0",
14219
+ "direction": "^2.0.0",
14220
+ "hast-util-has-property": "^3.0.0",
14221
+ "hast-util-to-string": "^3.0.0",
14222
+ "hast-util-whitespace": "^3.0.0",
14223
+ "nth-check": "^2.0.0",
14224
+ "property-information": "^6.0.0",
14225
+ "space-separated-tokens": "^2.0.0",
14226
+ "unist-util-visit": "^5.0.0",
14227
+ "zwitch": "^2.0.0"
14228
+ },
14229
+ "funding": {
14230
+ "type": "opencollective",
14231
+ "url": "https://opencollective.com/unified"
14232
+ }
14233
+ },
14234
  "node_modules/hast-util-to-jsx-runtime": {
14235
  "version": "2.3.0",
14236
  "resolved": "https://registry.npmmirror.com/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.0.tgz",
 
14271
  "url": "https://opencollective.com/unified"
14272
  }
14273
  },
14274
+ "node_modules/hast-util-to-string": {
14275
+ "version": "3.0.1",
14276
+ "resolved": "https://registry.npmmirror.com/hast-util-to-string/-/hast-util-to-string-3.0.1.tgz",
14277
+ "integrity": "sha512-XelQVTDWvqcl3axRfI0xSeoVKzyIFPwsAGSLIsKdJKQMXDYJS4WYrBNF/8J7RdhIcFI2BOHgAifggsvsxp/3+A==",
14278
+ "dependencies": {
14279
+ "@types/hast": "^3.0.0"
14280
+ },
14281
+ "funding": {
14282
+ "type": "opencollective",
14283
+ "url": "https://opencollective.com/unified"
14284
+ }
14285
+ },
14286
  "node_modules/hast-util-whitespace": {
14287
  "version": "3.0.0",
14288
  "resolved": "https://registry.npmmirror.com/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",
 
21106
  "node": ">= 0.10"
21107
  }
21108
  },
21109
+ "node_modules/parse-numeric-range": {
21110
+ "version": "1.3.0",
21111
+ "resolved": "https://registry.npmmirror.com/parse-numeric-range/-/parse-numeric-range-1.3.0.tgz",
21112
+ "integrity": "sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ=="
21113
+ },
21114
  "node_modules/parse5": {
21115
  "version": "7.1.2",
21116
  "resolved": "https://registry.npmmirror.com/parse5/-/parse5-7.1.2.tgz",
 
24147
  "node": ">= 0.4"
24148
  }
24149
  },
24150
+ "node_modules/rehype-attr": {
24151
+ "version": "3.0.3",
24152
+ "resolved": "https://registry.npmmirror.com/rehype-attr/-/rehype-attr-3.0.3.tgz",
24153
+ "integrity": "sha512-Up50Xfra8tyxnkJdCzLBIBtxOcB2M1xdeKe1324U06RAvSjYm7ULSeoM+b/nYPQPVd7jsXJ9+39IG1WAJPXONw==",
24154
+ "dependencies": {
24155
+ "unified": "~11.0.0",
24156
+ "unist-util-visit": "~5.0.0"
24157
+ },
24158
+ "engines": {
24159
+ "node": ">=16"
24160
+ },
24161
+ "funding": {
24162
+ "url": "https://jaywcjlove.github.io/#/sponsor"
24163
+ }
24164
+ },
24165
+ "node_modules/rehype-autolink-headings": {
24166
+ "version": "7.1.0",
24167
+ "resolved": "https://registry.npmmirror.com/rehype-autolink-headings/-/rehype-autolink-headings-7.1.0.tgz",
24168
+ "integrity": "sha512-rItO/pSdvnvsP4QRB1pmPiNHUskikqtPojZKJPPPAVx9Hj8i8TwMBhofrrAYRhYOOBZH9tgmG5lPqDLuIWPWmw==",
24169
+ "dependencies": {
24170
+ "@types/hast": "^3.0.0",
24171
+ "@ungap/structured-clone": "^1.0.0",
24172
+ "hast-util-heading-rank": "^3.0.0",
24173
+ "hast-util-is-element": "^3.0.0",
24174
+ "unified": "^11.0.0",
24175
+ "unist-util-visit": "^5.0.0"
24176
+ },
24177
+ "funding": {
24178
+ "type": "opencollective",
24179
+ "url": "https://opencollective.com/unified"
24180
+ }
24181
+ },
24182
+ "node_modules/rehype-ignore": {
24183
+ "version": "2.0.2",
24184
+ "resolved": "https://registry.npmmirror.com/rehype-ignore/-/rehype-ignore-2.0.2.tgz",
24185
+ "integrity": "sha512-BpAT/3lU9DMJ2siYVD/dSR0A/zQgD6Fb+fxkJd4j+wDVy6TYbYpK+FZqu8eM9EuNKGvi4BJR7XTZ/+zF02Dq8w==",
24186
+ "dependencies": {
24187
+ "hast-util-select": "^6.0.0",
24188
+ "unified": "^11.0.0",
24189
+ "unist-util-visit": "^5.0.0"
24190
+ },
24191
+ "engines": {
24192
+ "node": ">=16"
24193
+ },
24194
+ "funding": {
24195
+ "url": "https://jaywcjlove.github.io/#/sponsor"
24196
+ }
24197
+ },
24198
+ "node_modules/rehype-parse": {
24199
+ "version": "9.0.1",
24200
+ "resolved": "https://registry.npmmirror.com/rehype-parse/-/rehype-parse-9.0.1.tgz",
24201
+ "integrity": "sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag==",
24202
+ "dependencies": {
24203
+ "@types/hast": "^3.0.0",
24204
+ "hast-util-from-html": "^2.0.0",
24205
+ "unified": "^11.0.0"
24206
+ },
24207
+ "funding": {
24208
+ "type": "opencollective",
24209
+ "url": "https://opencollective.com/unified"
24210
+ }
24211
+ },
24212
+ "node_modules/rehype-prism-plus": {
24213
+ "version": "2.0.0",
24214
+ "resolved": "https://registry.npmmirror.com/rehype-prism-plus/-/rehype-prism-plus-2.0.0.tgz",
24215
+ "integrity": "sha512-FeM/9V2N7EvDZVdR2dqhAzlw5YI49m9Tgn7ZrYJeYHIahM6gcXpH0K1y2gNnKanZCydOMluJvX2cB9z3lhY8XQ==",
24216
+ "dependencies": {
24217
+ "hast-util-to-string": "^3.0.0",
24218
+ "parse-numeric-range": "^1.3.0",
24219
+ "refractor": "^4.8.0",
24220
+ "rehype-parse": "^9.0.0",
24221
+ "unist-util-filter": "^5.0.0",
24222
+ "unist-util-visit": "^5.0.0"
24223
+ }
24224
+ },
24225
+ "node_modules/rehype-prism-plus/node_modules/@types/hast": {
24226
+ "version": "2.3.10",
24227
+ "resolved": "https://registry.npmmirror.com/@types/hast/-/hast-2.3.10.tgz",
24228
+ "integrity": "sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==",
24229
+ "dependencies": {
24230
+ "@types/unist": "^2"
24231
+ }
24232
+ },
24233
+ "node_modules/rehype-prism-plus/node_modules/@types/unist": {
24234
+ "version": "2.0.11",
24235
+ "resolved": "https://registry.npmmirror.com/@types/unist/-/unist-2.0.11.tgz",
24236
+ "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="
24237
+ },
24238
+ "node_modules/rehype-prism-plus/node_modules/hast-util-parse-selector": {
24239
+ "version": "3.1.1",
24240
+ "resolved": "https://registry.npmmirror.com/hast-util-parse-selector/-/hast-util-parse-selector-3.1.1.tgz",
24241
+ "integrity": "sha512-jdlwBjEexy1oGz0aJ2f4GKMaVKkA9jwjr4MjAAI22E5fM/TXVZHuS5OpONtdeIkRKqAaryQ2E9xNQxijoThSZA==",
24242
+ "dependencies": {
24243
+ "@types/hast": "^2.0.0"
24244
+ },
24245
+ "funding": {
24246
+ "type": "opencollective",
24247
+ "url": "https://opencollective.com/unified"
24248
+ }
24249
+ },
24250
+ "node_modules/rehype-prism-plus/node_modules/hastscript": {
24251
+ "version": "7.2.0",
24252
+ "resolved": "https://registry.npmmirror.com/hastscript/-/hastscript-7.2.0.tgz",
24253
+ "integrity": "sha512-TtYPq24IldU8iKoJQqvZOuhi5CyCQRAbvDOX0x1eW6rsHSxa/1i2CCiptNTotGHJ3VoHRGmqiv6/D3q113ikkw==",
24254
+ "dependencies": {
24255
+ "@types/hast": "^2.0.0",
24256
+ "comma-separated-tokens": "^2.0.0",
24257
+ "hast-util-parse-selector": "^3.0.0",
24258
+ "property-information": "^6.0.0",
24259
+ "space-separated-tokens": "^2.0.0"
24260
+ },
24261
+ "funding": {
24262
+ "type": "opencollective",
24263
+ "url": "https://opencollective.com/unified"
24264
+ }
24265
+ },
24266
+ "node_modules/rehype-prism-plus/node_modules/refractor": {
24267
+ "version": "4.8.1",
24268
+ "resolved": "https://registry.npmmirror.com/refractor/-/refractor-4.8.1.tgz",
24269
+ "integrity": "sha512-/fk5sI0iTgFYlmVGYVew90AoYnNMP6pooClx/XKqyeeCQXrL0Kvgn8V0VEht5ccdljbzzF1i3Q213gcntkRExg==",
24270
+ "dependencies": {
24271
+ "@types/hast": "^2.0.0",
24272
+ "@types/prismjs": "^1.0.0",
24273
+ "hastscript": "^7.0.0",
24274
+ "parse-entities": "^4.0.0"
24275
+ },
24276
+ "funding": {
24277
+ "type": "github",
24278
+ "url": "https://github.com/sponsors/wooorm"
24279
+ }
24280
+ },
24281
  "node_modules/rehype-raw": {
24282
  "version": "7.0.0",
24283
  "resolved": "https://registry.npmmirror.com/rehype-raw/-/rehype-raw-7.0.0.tgz",
 
24292
  "url": "https://opencollective.com/unified"
24293
  }
24294
  },
24295
+ "node_modules/rehype-rewrite": {
24296
+ "version": "4.0.2",
24297
+ "resolved": "https://registry.npmmirror.com/rehype-rewrite/-/rehype-rewrite-4.0.2.tgz",
24298
+ "integrity": "sha512-rjLJ3z6fIV11phwCqHp/KRo8xuUCO8o9bFJCNw5o6O2wlLk6g8r323aRswdGBQwfXPFYeSuZdAjp4tzo6RGqEg==",
24299
+ "dependencies": {
24300
+ "hast-util-select": "^6.0.0",
24301
+ "unified": "^11.0.3",
24302
+ "unist-util-visit": "^5.0.0"
24303
+ },
24304
+ "engines": {
24305
+ "node": ">=16.0.0"
24306
+ },
24307
+ "funding": {
24308
+ "url": "https://jaywcjlove.github.io/#/sponsor"
24309
+ }
24310
+ },
24311
+ "node_modules/rehype-slug": {
24312
+ "version": "6.0.0",
24313
+ "resolved": "https://registry.npmmirror.com/rehype-slug/-/rehype-slug-6.0.0.tgz",
24314
+ "integrity": "sha512-lWyvf/jwu+oS5+hL5eClVd3hNdmwM1kAC0BUvEGD19pajQMIzcNUd/k9GsfQ+FfECvX+JE+e9/btsKH0EjJT6A==",
24315
+ "dependencies": {
24316
+ "@types/hast": "^3.0.0",
24317
+ "github-slugger": "^2.0.0",
24318
+ "hast-util-heading-rank": "^3.0.0",
24319
+ "hast-util-to-string": "^3.0.0",
24320
+ "unist-util-visit": "^5.0.0"
24321
+ },
24322
+ "funding": {
24323
+ "type": "opencollective",
24324
+ "url": "https://opencollective.com/unified"
24325
+ }
24326
+ },
24327
  "node_modules/relateurl": {
24328
  "version": "0.2.7",
24329
  "resolved": "https://registry.npmmirror.com/relateurl/-/relateurl-0.2.7.tgz",
 
24362
  "unified": "^11.0.0"
24363
  }
24364
  },
24365
+ "node_modules/remark-github-blockquote-alert": {
24366
+ "version": "1.3.0",
24367
+ "resolved": "https://registry.npmmirror.com/remark-github-blockquote-alert/-/remark-github-blockquote-alert-1.3.0.tgz",
24368
+ "integrity": "sha512-cwkBA4x+VH4J2VAMzhbmSeAmK5tBd5iwesgSUUQuRtuQ48XQm6sXXNLY9PR7ohZmZiqMeoDMUGCTur5zwR4lTQ==",
24369
+ "dependencies": {
24370
+ "unist-util-visit": "^5.0.0"
24371
+ },
24372
+ "engines": {
24373
+ "node": ">=16"
24374
+ },
24375
+ "funding": {
24376
+ "url": "https://jaywcjlove.github.io/#/sponsor"
24377
+ }
24378
+ },
24379
  "node_modules/remark-loader": {
24380
  "version": "6.0.0",
24381
  "resolved": "https://registry.npmmirror.com/remark-loader/-/remark-loader-6.0.0.tgz",
 
27761
  "node": ">=0.10.0"
27762
  }
27763
  },
27764
+ "node_modules/unist-util-filter": {
27765
+ "version": "5.0.1",
27766
+ "resolved": "https://registry.npmmirror.com/unist-util-filter/-/unist-util-filter-5.0.1.tgz",
27767
+ "integrity": "sha512-pHx7D4Zt6+TsfwylH9+lYhBhzyhEnCXs/lbq/Hstxno5z4gVdyc2WEW0asfjGKPyG4pEKrnBv5hdkO6+aRnQJw==",
27768
+ "dependencies": {
27769
+ "@types/unist": "^3.0.0",
27770
+ "unist-util-is": "^6.0.0",
27771
+ "unist-util-visit-parents": "^6.0.0"
27772
+ }
27773
+ },
27774
  "node_modules/unist-util-is": {
27775
  "version": "6.0.0",
27776
  "resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
web/package.json CHANGED
@@ -25,6 +25,7 @@
25
  "@monaco-editor/react": "^4.6.0",
26
  "@tanstack/react-query": "^5.40.0",
27
  "@tanstack/react-query-devtools": "^5.51.5",
 
28
  "ahooks": "^3.7.10",
29
  "antd": "^5.12.7",
30
  "axios": "^1.6.3",
 
25
  "@monaco-editor/react": "^4.6.0",
26
  "@tanstack/react-query": "^5.40.0",
27
  "@tanstack/react-query-devtools": "^5.51.5",
28
+ "@uiw/react-markdown-preview": "^5.1.3",
29
  "ahooks": "^3.7.10",
30
  "antd": "^5.12.7",
31
  "axios": "^1.6.3",
web/src/components/api-service/chat-overview-modal/api-content.tsx CHANGED
@@ -1,6 +1,6 @@
1
- import HightLightMarkdown from '@/components/highlight-markdown';
2
  import { useSetModalState, useTranslate } from '@/hooks/common-hooks';
3
  import apiDoc from '@parent/docs/references/http_api_reference.md';
 
4
  import { Button, Card, Flex, Space } from 'antd';
5
  import ChatApiKeyModal from '../chat-api-key-modal';
6
  import EmbedModal from '../embed-modal';
@@ -41,7 +41,7 @@ const ApiContent = ({
41
  </Flex>
42
  </Card>
43
  )}
44
- <HightLightMarkdown>{apiDoc}</HightLightMarkdown>
45
  </Flex>
46
  {apiKeyVisible && (
47
  <ChatApiKeyModal
 
 
1
  import { useSetModalState, useTranslate } from '@/hooks/common-hooks';
2
  import apiDoc from '@parent/docs/references/http_api_reference.md';
3
+ import MarkdownPreview from '@uiw/react-markdown-preview';
4
  import { Button, Card, Flex, Space } from 'antd';
5
  import ChatApiKeyModal from '../chat-api-key-modal';
6
  import EmbedModal from '../embed-modal';
 
41
  </Flex>
42
  </Card>
43
  )}
44
+ <MarkdownPreview source={apiDoc}></MarkdownPreview>
45
  </Flex>
46
  {apiKeyVisible && (
47
  <ChatApiKeyModal