Skip to content

Commit b20ed56

Browse files
author
FalkWolsky
committed
Update React Markdown
1 parent 9f7fc35 commit b20ed56

File tree

3 files changed

+273
-6
lines changed

3 files changed

+273
-6
lines changed

client/packages/lowcoder/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"react-helmet": "^6.1.0",
7474
"react-joyride": "^2.4.0",
7575
"react-json-view": "^1.21.3",
76-
"react-markdown": "^8.0.0",
76+
"react-markdown": "^9.0.1",
7777
"react-qr-barcode-scanner": "^1.0.6",
7878
"react-quill": "^2.0.0",
7979
"react-redux": "^7.2.6",

client/packages/lowcoder/src/pages/support/supportDetail.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,13 @@ const convertJiraToMarkdown = (content: string) => {
8383
if (line.trim().startsWith('|')) {
8484
// If this is the header row, count the columns and generate the dashes line
8585
if (!inTable) {
86-
inTable = true; // We're now in a table
86+
inTable = true;
8787
const columns = line.split('|').filter(Boolean).length;
8888

8989
// Create the markdown dashes row for headers
90-
const dashes = '| ' + new Array(columns).fill('---').join(' | ') + ' |';
91-
return line + '\n' + dashes; // Return the header with the dashes row
90+
const dashes = '| ' + new Array(columns).fill('-').join(' | ') + ' |';
91+
return line + '\n' + dashes;
92+
// return line + '\n';
9293
} else {
9394
// If already in a table, just return the row as it is
9495
return line;

0 commit comments

Comments
 (0)