A simple TypeScript implementation of a markdown processor using unified, remark, and rehype.
pnpm install
pnpm build
pnpm start
To watch for changes and rebuild automatically:
pnpm dev
import { processMarkdown } from "./dist/index.js"
const markdown = "# Hello World"
const html = await processMarkdown(markdown)
console.log(html)