Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix: add LLM markdown handlers for quickstart components
Add conversion handlers for custom components in mdxToCleanMarkdown: - FrameworkOption → ## {name} header - IntegrationContent → ### Native Tools / MCP section - Accordion → **{title}** with content - QuickstartFlow, IntegrationTabs, Accordions → strip wrapper tags This ensures llms-full.txt correctly renders the quickstart page with framework names and integration type labels preserved. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Jan 25, 2026 at 22:48 UTC
4f8f0bb88083113b61d44fbf67401946a5da5601
1 file changed
+22
-2
docs/lib/source.ts
+22
-2
@@ -108,8 +108,28 @@ function mdxToCleanMarkdown(content: string): string {
108
result = result.replace(/<Step>\s*###\s*(.+)/g, '### Step: $1');
109
result = result.replace(/<\/?Steps?>/g, '');
110
111
- // Remove wrapper components (Cards, ProviderGrid, Tabs, Frame, div, etc.)
112
- result = result.replace(/<\/?(Cards|ProviderGrid|Tabs|Frame|div)[^>]*>/g, '');
111
+ // Convert FrameworkOption to header with framework name
112
+ result = result.replace(
113
+ /<FrameworkOption[\s\S]*?name="([^"]*)"[\s\S]*?>/g,
114
+ '\n## $1\n'
115
+ );
116
+ result = result.replace(/<\/FrameworkOption>/g, '');
117
+
118
+ // Convert IntegrationContent to labeled section (Native Tools / MCP)
119
+ result = result.replace(
120
+ /<IntegrationContent[\s\S]*?value="([^"]*)"[\s\S]*?>/g,
121
+ (_, value) => `\n### ${value === 'native' ? 'Native Tools' : 'MCP'}\n`
122
+ );
123
+ result = result.replace(/<\/IntegrationContent>/g, '');
124
+
125
+ // Convert Accordion to collapsible-style text
126
+ result = result.replace(
127
+ /<Accordion[\s\S]*?title="([^"]*)"[\s\S]*?>([\s\S]*?)<\/Accordion>/g,
128
+ '\n**$1**\n$2'
129
+ );
130
+
131
+ // Remove wrapper components (Cards, ProviderGrid, Tabs, Frame, div, QuickstartFlow, IntegrationTabs, Accordions, etc.)
132
+ result = result.replace(/<\/?(Cards|ProviderGrid|Tabs|Frame|div|QuickstartFlow|IntegrationTabs|Accordions)[^>]*>/g, '');
133
134
// Remove remaining self-closing JSX tags (including those with JSX expressions)
135
result = result.replace(/<[A-Z][a-zA-Z]*[\s\S]*?\/>/g, '');