Developer builds single API endpoint to parse Markdown into structured JSON across pipelines
A developer frustrated by repeatedly reimplementing Markdown parsers across four separate projects built a unified REST endpoint called md2json, hosted on Cloudflare Workers. The POST /v1/parse endpoint accepts Markdown and returns a consistent JSON structure covering frontmatter, headings, tables, tasklists, code blocks, and a sectioned content tree. The tool was created to solve recurring edge-case failures seen with libraries like remark, gray-matter, and marked, such as lost checkbox states and mishandled YAML booleans. Because it runs as a stateless Cloudflare Workers function, there is no database or authentication server to maintain, keeping operational costs at zero during low traffic. The endpoint is publicly available via RapidAPI and is designed to serve multiple language environments — including Python, Node.js, and n8n — from a single consistent interface.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in