diff --git a/src/tableUtils.ts b/src/tableUtils.ts index 238f46b..5cd34d3 100644 --- a/src/tableUtils.ts +++ b/src/tableUtils.ts @@ -71,7 +71,7 @@ export function parseTable(table: string, format: string): Table { if (table.match(/<\s*[tT][aA][bB][lL][eE].*\s*>/) && table.match(/<\/\s*[tT][aA][bB][lL][eE]\s*>/)) return htmlParser.parse(table); // Markdown separator row found? - else if (table.match(separatorRegex)) + else if (table.match(/^\|?([\s\.]*:?[\-=\.]+[:\+]?[\s\.]*\|?)+\|?$/m)) return getMarkdownParser(format).parse(table); // At least one comma found? else if (table.match(/(.*,)+.*/))