MDX/Markdown compiler for SolidJS. Version 0.7.0, peer dependency on solid-js ^1.7. Compiles Markdown to SolidJS components at build time via Vite/unplugin. Supports all mdast nodes (Paragraph, Heading, ThematicBreak, etc.) with built-in components configurable through an MDX provider pattern. Requires the compile() function to generate code, and runtime relies on Dynamic component for dynamic rendering. Differentiated from generic Markdown compilers by tight SolidJS integration, TypeScript types, and lightweight runtime.
npm install solid-markedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows Vite plugin setup, MDXProvider wrapping, and using useMDX hook to provide built-in components.
Use import { compile } from 'solid-marked/compiler'Check updates for solid-marked compat with solid-js v2.
Wrap your app with <MDXProvider builtins={...}> and use useMDX inside children.Set noDynamicComponents: false (default) or provide your own implementation.
Wrap your component tree with <MDXProvider builtins={{ Root, Paragraph, ... }}> and use useMDX inside.Ensure you have <Router> wrapped appropriately.
Change import to 'solid-marked/compiler'