Mdx as route
Hi!, It is posible to add mdx file as route in file based routing?
12 Replies
fascinating-indigo•6mo ago
not yet
ratty-blushOP•6mo ago
ok, thanks!
fascinating-indigo•6mo ago
added this here https://github.com/TanStack/router/discussions/3861
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"...
fascinating-indigo•6mo ago
might want to chime in whether you want to use path and params for mdx routes
loud-coral•6mo ago
@isccown125 where you able to get mdx to work? i have been struggling all day to get it to work with start
ratty-blushOP•6mo ago
@gaytomycode i run mdx with vite 😄
ratty-blushOP•6mo 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.
ratty-blushOP•6mo ago
in vite config you should add plugin

ratty-blushOP•6mo ago
from :

ratty-blushOP•6mo ago
If you use weback or other frameword/js/ts you have tutorial in docs
absent-sapphire•3mo ago
curiuos how this would work with TanstackStart
any luck?
automatic-azure•2mo ago
Anyone has a solution to share?