Add content_type and content_raw fields to PageDetail for MDX rendering #70

Closed
opened 2026-03-01 14:51:28 +00:00 by mik-tf · 1 comment
Owner

Problem

The PageDetail RPC response does not distinguish between HTML and MDX content types. When .mdx files are served, the frontend has no way to know the content needs MDX rendering instead of plain HTML.

Fix

  • Add content_type field ("html" or "mdx") to PageDetail response
  • Add content_raw field with the raw MDX source for MDX files
  • Detect .mdx file extension in get_page handler
  • Regenerate schema docs, SDK types, and JS types from updated OSchema
## Problem The `PageDetail` RPC response does not distinguish between HTML and MDX content types. When `.mdx` files are served, the frontend has no way to know the content needs MDX rendering instead of plain HTML. ## Fix - Add `content_type` field ("html" or "mdx") to `PageDetail` response - Add `content_raw` field with the raw MDX source for MDX files - Detect `.mdx` file extension in `get_page` handler - Regenerate schema docs, SDK types, and JS types from updated OSchema
Author
Owner

we focus on bootstrap now so we do this later, as it requires wasm ui

we focus on bootstrap now so we do this later, as it requires wasm ui
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_books#70
No description provided.