mdact
v0.1.0
Published
mdact is a markdown-to-React library plus a reference blog you can host on GitHub Pages or Vercel. Drop `.md` files into `content/` and the app renders them with the custom mdact parser.
Readme
mdact
mdact is a markdown-to-React library plus a reference blog you can host on GitHub Pages or Vercel. Drop .md files into content/ and the app renders them with the custom mdact parser.
Install
npm install mdactLocal development
npm install
npm run devSetup guide
- Create new markdown files in
content/with frontmatter. - Use
import.meta.glob(seesrc/lib/content.ts) to load posts. - Render
post.bodywith the mdact renderer.
---
title: My New Post
summary: A short teaser.
date: 2024-05-25
---
# My New Post
Write markdown here.Current features
- Headings (H1–H3)
- Paragraphs and blockquotes
- Lists
- Fenced code blocks with language labels
- Inline formatting for bold, italic, and
inline code
Deploying
- GitHub Pages: Build with
npm run build, then deploy thedist/folder. - Vercel: Import the repo, set the build command to
npm run build, and output todist.
