mdstr is a zero-config CLI tool that transforms markdown into a JSON-safe string, making it effortless to embed markdown in JSON for APIs, LLM prompts, or config files. It works with files or stdin, strips trailing newlines by default, and provides predictable, agent-friendly output. Perfect for automated pipelines and AI agent integrations.
Copilot says:
AI-generated
Turn your markdown into a perfectly escaped JSON string with just one command—no config fuss, no hassle! Perfect for dropping markdown into APIs, prompts, or configs in a snap.
Key features:
- 🔥 One-command markdown to JSON-safe string conversion
- ⚡ Works seamlessly with stdin and files
- 🎯 Preserves JSON-ready output with optional newline retention
- 🚀 Ideal for automating AI prompt and payload creation
This summary was generated by GitHub Copilot based on the project README.