File tree Expand file tree Collapse file tree 3 files changed +273
-6
lines changed Expand file tree Collapse file tree 3 files changed +273
-6
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments