Skip to content

Commit

Permalink
fix: issue 2074 - tables are rendered differently in a list (#2082)
Browse files Browse the repository at this point in the history
authored-by: Jose Fernando Gomez Flores <jose.gomezflores@teradata.com>
  • Loading branch information
fernando182gomez authored Dec 18, 2023
1 parent a0cf241 commit c8ff2a3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ export class TdFlavoredMarkdownComponent
}

private _replaceTables(markdown: string): string {
markdown = markdown.replaceAll(' |', '');
const tableRgx =
/^ {0,3}\|?.+\|.+\n[ \t]{0,3}\|?[ \t]*:?[ \t]*(?:-|=){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:-|=){2,}[\s\S]+?(?:\n\n|~0)/gm;
return this._replaceComponent(
Expand Down

0 comments on commit c8ff2a3

Please sign in to comment.