{"slug": "i-made-my-markdown-editor-ai-ready-marksmith-v0-3-0", "title": "I made my Markdown Editor \"AI-Ready\": MarkSmith v0.3.0", "summary": "Marksmith, a VS Code extension for Markdown editing, has been updated to version 0.3.0 with features tailored for AI workflows. The update adds a heuristic token estimator for GPT, Claude, and Gemini, a Markdown minifier to reduce token usage, and automatic detection of AI placeholders and broken links. The extension also includes security sandboxing to block malicious content in AI-generated Markdown.", "body_md": "Hey DEV community! 👋\n\nA few days ago, I built a VS Code extension called **Marksmith** to fix the most annoying parts of writing Markdown (like pasting Excel tables and syncing preview scrolls).\n\nBut recently, I noticed a huge shift in my own workflow: **Half the Markdown I write isn't for humans anymore.** It’s being fed directly into Claude, ChatGPT, or Gemini as prompts and context.\n\nWhen you're constantly stuffing docs into context windows, two things happen:\n\nSo, for the **v0.3.0 release**,\n\nI decided to pivot Marksmith into something new: **An Agent AI-Ready Markdown Toolkit.** 🚀\n\nHere is what I added to survive the AI era:\n\nInstead of just counting words, Marksmith’s *Document X-Ray* sidebar now includes a **Heuristic Token Estimator** for GPT, Claude, and Gemini.\n\nBefore you copy-paste that massive README into your AI assistant, you can see exactly how \"heavy\" it is in terms of tokens right inside your editor. No more guessing if you're about to blow past your context limit!\n\nFormatting is great for humans, but LLMs don't need all those extra spaces, perfectly aligned markdown tables, or empty lines.\n\nI added a `CodeLens`\n\nbutton at the top of your files. Click it, and Marksmith instantly **minifies** your Markdown (compresses tables, strips blanks) and copies it to your clipboard.\n\n*Result:* You save significant tokens and API costs without ruining your beautiful local `.md`\n\nfile.\n\nEver ask an AI to write documentation, and it leaves behind a bunch of `[TODO: Insert link here]`\n\nor makes up a fake local image path?\n\nMarksmith now automatically scans your document and puts a red squiggly line under **AI placeholders and broken local links**. Click the 💡 icon, and you can instantly strip them out or fix them. It acts as a safety net before you commit AI-generated docs.\n\nWait, security in a Markdown extension? Yes!\n\nIf you are previewing AI-generated Markdown, you are essentially rendering untrusted input. Maliciously crafted Markdown can trigger SSRF (Server-Side Request Forgery) by trying to fetch internal network metadata, or even execute code during PDF exports.\n\nI completely locked down the extension. It uses strict `DOMPurify`\n\nsandboxing and actively blocks attempts to ping internal/cloud IPs.\n\nBecause coding should be fun, I spent the weekend completely rebuilding the landing page using a **Mac OS Classic / Neo-Brutalism** theme. Let me know what you think of the vibes! 💾\n\nFor all my Cursor, Windsurf, and VSCodium users out there—thank you for the support! The extension has been doing surprisingly well on **Open VSX**, and it's officially verified there too.\n\n👇 **Check it out here:**\n\nIt is 100% free and open-source. If you are building with AI or just write a ton of docs, I hope this saves you as much time as it saves me.\n\nWould love to hear your feedback in the comments! Happy coding! 💻✨", "url": "https://wpnews.pro/news/i-made-my-markdown-editor-ai-ready-marksmith-v0-3-0", "canonical_source": "https://dev.to/rakkunn/i-made-my-markdown-editor-ai-ready-marksmith-v030-2pdb", "published_at": "2026-05-28 18:51:39+00:00", "updated_at": "2026-05-28 18:56:01.815715+00:00", "lang": "en", "topics": ["ai-tools", "ai-products", "large-language-models", "generative-ai", "artificial-intelligence"], "entities": ["Marksmith", "Claude", "ChatGPT", "Gemini", "VS Code", "MarkSmith", "Document X-Ray", "CodeLens"], "alternates": {"html": "https://wpnews.pro/news/i-made-my-markdown-editor-ai-ready-marksmith-v0-3-0", "markdown": "https://wpnews.pro/news/i-made-my-markdown-editor-ai-ready-marksmith-v0-3-0.md", "text": "https://wpnews.pro/news/i-made-my-markdown-editor-ai-ready-marksmith-v0-3-0.txt", "jsonld": "https://wpnews.pro/news/i-made-my-markdown-editor-ai-ready-marksmith-v0-3-0.jsonld"}}