Skip to content

Commit b8d15c9

Browse files
committed
parse / vue.provide injected components
1 parent 05ca998 commit b8d15c9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/studio-ui/src/main.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,17 @@ const vuetify = createVuetify({
199199
app.component(name, component);
200200
});
201201

202+
// Provide inline markdown components if available
203+
console.log('🎨 Studio Mode: Checking for inline markdown components');
204+
if (customQuestions?.inlineComponents) {
205+
console.log(` ✅ Found ${Object.keys(customQuestions.inlineComponents).length} inline components`);
206+
console.log(` 📋 Component names: ${Object.keys(customQuestions.inlineComponents).join(', ')}`);
207+
app.provide('markdownComponents', customQuestions.inlineComponents);
208+
} else {
209+
console.log(' ℹ️ No inline markdown components available');
210+
app.provide('markdownComponents', {});
211+
}
212+
202213
app.use(pinia);
203214
app.use(vuetify);
204215
app.use(router);

0 commit comments

Comments
 (0)