This article is written in MDX so it can mix legal commentary with components or structured examples when needed.
Why MDX?
MDX is a special flavor of Markdown that supports embedded JavaScript & JSX syntax. This unlocks the ability to mix JavaScript and UI Components into your Markdown content for things like interactive charts or alerts.
If you have existing legal notes, judgment summaries, or citations, MDX makes them easy to organize inside the same content flow.
Example
Here is how you can include a simple internal link style component inside MDX without depending on the old starter files.
Embedded legal reading link
More Links
- MDX Syntax Documentation
- Astro Usage Documentation
- Note: Client Directives are still required to create interactive components. Otherwise, all components in your MDX will render as static HTML (no JavaScript) by default.