Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 07:00 UTC
docs: add word boundary to Cards wrapper removal regex
Consistency fix: add \b to <Cards> removal regex to match the defensive \b already applied to all <Card\b regexes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmitha Mallesh committed
Feb 24, 2026 at 14:41 UTC
b033061284029bab5d07bddc23b4bd44d31a02bb
1 file changed
+1
-1
docs/lib/source.ts
+1
-1
@@ -119,7 +119,7 @@ export function mdxToCleanMarkdown(content: string): string {
119
120
// Remove Cards wrapper before processing individual Card tags
121
// (prevents <Cards> from being matched by <Card regex since <Cards starts with <Card)
122
- result = result.replace(/<\/?Cards[^>]*>/g, '');
122
+ result = result.replace(/<\/?Cards\b[^>]*>/g, '');
123
124
// Convert Card - handle multiline and various attribute orders
125
// Self-closing Cards with description attribute