T
TanStack•9mo ago
deep-jade

Mdx as route

Hi!, It is posible to add mdx file as route in file based routing?
12 Replies
conscious-sapphire
conscious-sapphire•9mo ago
not yet
deep-jade
deep-jadeOP•9mo ago
ok, thanks!
conscious-sapphire
conscious-sapphire•9mo ago
GitHub
[router-generator] Framework specific file-naming conventions · Ta...
Currently, the routeTree generation support file routes of the following naming: solid: .tsx, .ts (jsx: preserve, jsxImportSource: "solid-js") react: .tsx, .ts (jsx: "react-jsx"...
conscious-sapphire
conscious-sapphire•9mo ago
might want to chime in whether you want to use path and params for mdx routes
constant-blue
constant-blue•9mo ago
@isccown125 where you able to get mdx to work? i have been struggling all day to get it to work with start
deep-jade
deep-jadeOP•9mo ago
@gaytomycode i run mdx with vite 😄
deep-jade
deep-jadeOP•9mo ago
MDX
Markdown for the component era | MDX
MDX lets you use JSX in your markdown content. You can import components, such as interactive charts or alerts, and embed them within your content. This makes writing long-form content with components a blast.
deep-jade
deep-jadeOP•9mo ago
in vite config you should add plugin
No description
deep-jade
deep-jadeOP•9mo ago
from :
No description
deep-jade
deep-jadeOP•9mo ago
If you use weback or other frameword/js/ts you have tutorial in docs
like-gold
like-gold•6mo ago
curiuos how this would work with TanstackStart any luck?
harsh-harlequin
harsh-harlequin•5mo ago
Anyone has a solution to share?

Did you find this page helpful?