Meghan Lendhe36 downloadsCopy a Markdown note as structured JSON blocks to the clipboard.
Copy a note written in Obsidian (Markdown) into structured JSON blocks, optimized to be pasted into the companion Figma plugin that generates separate text layers for fast case study page layout.
Copy Markdown as JSON blocksmd-to-json# … ######) → h1–h6-, *, +) → each bullet becomes its own blockThis exporter is intended to be used with:
The plugin copies JSON like:
[
{ "type": "h1", "level": 1, "text": "Title", "id": "h1-0" },
{ "type": "h2", "level": 2, "text": "Overview", "id": "h2-1" },
{ "type": "body", "text": "Problem: ...", "id": "body-2" },
{ "type": "body", "text": "Time: 14 weeks", "id": "body-3" },
{ "type": "list", "text": "A bullet item", "id": "list-4" }
]
type (required): h1–h6 | body | listlevel (optional): 1–6 (for headings)text (required): string content for that line/itemid (required): identifier generated during export (useful for ordering and potential “update” flows later)Ctrl + P to open Command Palette.<YourVault>/.obsidian/plugins/md-to-json/
Files needed:
manifest.jsonmain.jsThis matches the common layout used by the Obsidian sample plugin template.
If
.obsidian/pluginsdoesn’t exist yet, create it.
This project was bootstrapped from the Obsidian sample plugin template (TypeScript → compiled main.js).
npm install
npm run dev
npm run build
After rebuilding, reload the plugin in Obsidian (toggle it off/on) to pick up changes.
#{1,6} Heading → a heading block (h1–h6)body- item / * item / + item → list