Skip to content

Commit 1f7aea6

Browse files
committed
fix(api): add GFM table detection to MarkdownService
- Add regex pattern to detect markdown tables
1 parent 068195c commit 1f7aea6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/api/services/markdown/MarkdownService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export class MarkdownService {
9494
/^[-*+]\s+/m, // Lists
9595
/^>\s+/m, // Blockquotes
9696
/`[^`]+`/, // Inline code
97-
/^```/m // Code blocks
97+
/^```/m, // Code blocks
98+
/\|.+\|.+\|/m // Tables (GFM)
9899
];
99100

100101
return markdownPatterns.some((pattern) => pattern.test(content));

0 commit comments

Comments
 (0)