File tree 3 files changed +273
-6
lines changed
3 files changed +273
-6
lines changed Original file line number Diff line number Diff line change 73
73
"react-helmet" : " ^6.1.0" ,
74
74
"react-joyride" : " ^2.4.0" ,
75
75
"react-json-view" : " ^1.21.3" ,
76
- "react-markdown" : " ^8 .0.0 " ,
76
+ "react-markdown" : " ^9 .0.1 " ,
77
77
"react-qr-barcode-scanner" : " ^1.0.6" ,
78
78
"react-quill" : " ^2.0.0" ,
79
79
"react-redux" : " ^7.2.6" ,
Original file line number Diff line number Diff line change @@ -83,12 +83,13 @@ const convertJiraToMarkdown = (content: string) => {
83
83
if ( line . trim ( ) . startsWith ( '|' ) ) {
84
84
// If this is the header row, count the columns and generate the dashes line
85
85
if ( ! inTable ) {
86
- inTable = true ; // We're now in a table
86
+ inTable = true ;
87
87
const columns = line . split ( '|' ) . filter ( Boolean ) . length ;
88
88
89
89
// 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';
92
93
} else {
93
94
// If already in a table, just return the row as it is
94
95
return line ;
You can’t perform that action at this time.
0 commit comments