← All projects
Tool

Markdown to JSON Editor

A lightweight Markdown editor with live preview and integrated toolbar, which outputs formatted text at the push of a button as a single-line, escaped JSON string for direct further processing.

MarkdownJSONJavaScript
Markdown to JSON Editor

This tool was created out of pure self-interest after I struggled with formatting and manually inserting content when publishing my last blog post.

In the course of an optimization round, I had moved all longer texts into a separate JSON file and collected the content there as single-line strings. It quickly became clear that this manual formatting would cause problems by the next blog post at the latest and massively slow down the workflow. The solution: a few lines of HTML, CSS, and JavaScript to build a tailored editor with a 'One-Line-JSON-Copy' function.

The editor optimizes the content workflow through a strict connection of design and functionality:

  1. Live Preview: While writing, the integrated Markdown rendering component ensures direct visual control of the final layout.

  2. Toolbar: Frequently used Markdown formats (such as headings, lists, or code blocks) can be inserted with a click via an intuitive toolbar.

  3. One-Click Export: A dedicated button instantly converts the entire text into a single-line, escaped JSON string and copies it directly to the clipboard.

A small but highly efficient tool for my own content workflow, which takes the annoying manual escaping of texts off my hands and noticeably speeds up the publishing of new blog content.

← Back home