We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ba4643 commit 3f58643Copy full SHA for 3f58643
scripts/lib/markdown-parser.js
@@ -128,7 +128,11 @@ export function parseMarkdownContent(filePath) {
128
// Remove frontmatter
129
let cleaned = content.replace(/^---[\s\S]*?---\n/, '');
130
131
- // Remove JSX components
+ // Extract and preserve React components (capital letter start = React components)
132
+ // Replace with clear markers so LLM can detect them
133
+ cleaned = cleaned.replace(/<([A-Z][a-zA-Z]*)\s*\/>/g, '[VISUAL_COMPONENT: $1]');
134
+
135
+ // Remove remaining HTML tags (lowercase = HTML elements)
136
cleaned = cleaned.replace(/<[^>]+>/g, '');
137
138
// First pass: Find all code blocks and their contexts
0 commit comments