Show HN: Writemark, a dependency free web component for inline Markdown editing

Hacker News Top Tools

Summary

Writemark is a dependency-free web component for inline Markdown editing that renders as you type, supports source/split/preview modes, slash commands, tables, task lists, code blocks, and native form integration, all without a framework or toolbar.

I like writing Markdown, but do not like writing it inside a plain textarea.<p>I wanted something I could use anywhere by dropping in a single web component:<p>```<p>&lt;writemark-editor name=&quot;body&quot;&gt;&lt;&#x2F;writemark-editor&gt;<p>```<p>That became Writemark.<p>It renders Markdown while you write, but Markdown remains the value you read, store, and submit. It also has source, split, and preview modes, along with slash commands, tables, task lists, code blocks, native form support, and an API for adding your own controls. There are no runtime dependencies and no required framework or built in toolbar.<p>It is fully vibecoded. The process was very iterative. I knocked something out, tried using it, found bugs, fixed them, and repeated that cycle until I had something I liked writing in and that performed reasonably well.<p>It did not begin as an experiment about AI generated software -- just did not want to use textareas anymore. I like Markdown, and I wanted one component that I could use anywhere without bringing along an entire editor framework.<p>It is still very young. The parser is handwritten, the component is essentially one large JavaScript file, and I am certain there are edge cases waiting to be found. If you find one, I am happy to fix it.<p>I have tried to give it a decent safety net. It currently has 951 Playwright checks across Chromium, Firefox, and WebKit, along with hostile input cases, sanitizer fuzzing, and differential tests against CommonMark.<p>I built this because I wanted it for myself, but I think it turned into something kind of cool. I hope some of you enjoy it. I would love hearing what you think, especially if you try it and manage to break something.<p>- Github: <a href="https:&#x2F;&#x2F;github.com&#x2F;Brostoffed&#x2F;writemark" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Brostoffed&#x2F;writemark</a><p>- NPM: <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;writemark-editor" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;writemark-editor</a>
Original Article
View Cached Full Text

Cached at: 07/25/26, 11:12 PM

# Show HN: Writemark, a dependency free web component for inline Markdown editing Source: [https://news.ycombinator.com/item?id=49051130](https://news.ycombinator.com/item?id=49051130) I like writing Markdown, but do not like writing it inside a plain textarea\. I wanted something I could use anywhere by dropping in a single web component: \`\`\` <writemark\-editor name="body"\></writemark\-editor\> \`\`\` That became Writemark\. It renders Markdown while you write, but Markdown remains the value you read, store, and submit\. It also has source, split, and preview modes, along with slash commands, tables, task lists, code blocks, native form support, and an API for adding your own controls\. There are no runtime dependencies and no required framework or built in toolbar\. It is fully vibecoded\. The process was very iterative\. I knocked something out, tried using it, found bugs, fixed them, and repeated that cycle until I had something I liked writing in and that performed reasonably well\. It did not begin as an experiment about AI generated software \-\- just did not want to use textareas anymore\. I like Markdown, and I wanted one component that I could use anywhere without bringing along an entire editor framework\. It is still very young\. The parser is handwritten, the component is essentially one large JavaScript file, and I am certain there are edge cases waiting to be found\. If you find one, I am happy to fix it\. I have tried to give it a decent safety net\. It currently has 951 Playwright checks across Chromium, Firefox, and WebKit, along with hostile input cases, sanitizer fuzzing, and differential tests against CommonMark\. I built this because I wanted it for myself, but I think it turned into something kind of cool\. I hope some of you enjoy it\. I would love hearing what you think, especially if you try it and manage to break something\. \- Github:[https://github\.com/Brostoffed/writemark](https://github.com/Brostoffed/writemark) \- NPM:[https://www\.npmjs\.com/package/writemark\-editor](https://www.npmjs.com/package/writemark-editor)

Similar Articles

Show HN: Ledge.sh – Runnable Markdown Notes

Hacker News Top

Ledge.sh is a free, open-source (Apache-2.0) Markdown notebook for developers and DevOps that lets you run shell, code, SQL, and AI prompt blocks directly inside your notes, with persistent per-note shells and optional remote-server execution over SSH from desktop or mobile.

Gtk+Adwaita Markdown Editor in ~600 lines

Lobsters Hottest

A compact GTK+Adwaita split-view Markdown editor implementation in about 600 lines, using a GTK WebView and CDN-loaded marked.js and KaTeX. It serves as a prototype inspired by Apostrophe to demonstrate how easy building such apps has become.

Marked Share

Product Hunt

Marked Share is a free tool for editing, reviewing, and sharing Markdown and TextBundle documents with features like highlighting, commenting, and blog feed integration via RSS/Atom and Micro.blog.