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

41 pointsposted 13 hours ago
by _boffin_

Item id: 49051130

16 Comments

yabdulaah52

10 hours ago

Inline editing is underrated. Being able to see mistakes instantly cuts down a lot of the trial‑and‑error debugging in Markdown-heavy projects.

tadfisher

6 hours ago

What does debugging Markdown even mean?

What is a Markdown-heavy project?

Is this a generated comment?

mjcohen

6 hours ago

For math.stackexchange.com which uses MathJax, I use MacDown, a markdown editor with parallel windows, one showing the MathJax and the other (in real time) the rendered math. I find it essential.

I enter my math directly into the editor without writing anything on paper. Works for me. The ability to copy and paste is invaluable.

sheept

9 hours ago

It'd be nice if there was a live demo without needing to clone the repo. Though I suppose I could just try it out with a bookmarklet:

    javascript:import('https://esm.sh/writemark-editor').then(() => document.body.append(document.createElement('writemark-editor')))

teo_zero

12 hours ago

How can it be defined dependency free if it depends on Node.js?

chronicler

10 hours ago

it needs an operating system to run omg not dependency free

teo_zero

3 hours ago

LOL, and an internet connection, too!

But, seriously, of course "web" requires internet and a computer and an operating system. But since when "web" also means Node.js?

If a web component is advertized as dependency free, I expect something that I can include in a <script> tag and it works. Am I wrong?

bpev

19 minutes ago

i mean fwiw can prolly include direct script tag using something like https://esm.sh

jpease

9 hours ago

Does this operating system also depend on an underlying computer?

xyzzy_plugh

9 hours ago

You're free to just step through the assembly manually. You might need some paper and a pen.

stevesajeev

6 hours ago

It ain't dependency free, if you need pen and paper.

_boffin_

12 hours ago

Dependency-free means zero runtime dependencies, not no dev tools. Could have explained that better.

teo_zero

11 hours ago

Do you mean I don't need Node.js on the machine where I run it?

jjice

11 hours ago

It's a web component so you run it in the browser without dependencies after it's already been built with Node.

_boffin_

11 hours ago

Doesn’t need to be built by node. It’s standalone.