diff --git a/shared/editor/lib/isMarkdown.ts b/shared/editor/lib/isMarkdown.ts index 680410c88..45bba3c21 100644 --- a/shared/editor/lib/isMarkdown.ts +++ b/shared/editor/lib/isMarkdown.ts @@ -24,5 +24,11 @@ export default function isMarkdown(text: string): boolean { return true; } + // table header-ish + const tables = text.match(/^\|\s?[-]+\s?\|/gm); + if (tables && tables.length > 1) { + return true; + } + return false; }