✨ Enhancement: Refactor StyledMarkdown.tsx
for Modular Markdown Rendering
#1659
Labels
✨ Enhancement
Indicates that the issue suggests an improvement or new feature.
Status: Triage
This is the initial status for an issue that requires triage.
Description
The
StyledMarkdown
component is the cornerstone for rendering all markdown content on the JSON Schema website. It converts markdown syntax into styled HTML, handles link transformation, tab group parsing, and generates a dynamic Table of Contents. Refactor it to improve maintainability, testability, and integrate ShadCN/UI primitives while preserving existing behaviors.Tasks
1. Modularization
utils/transformLinks.ts
utils/parseTabGroups.ts
<MarkdownBlock>
to render standard markdown sections<TabsGroup>
to encapsulate tab parsing & switching<TableOfContents>
using React Context for navigable outlines2. UI Library Integration
<Heading>
and<Typography>
<Alert>
or<Callout>
<Code>
component<Table>
suite for all markdown tables<Tabs>
primitives within<TabsGroup>
Are you working on this?
Yes
The text was updated successfully, but these errors were encountered: