Remix.run Logo
komali2 3 hours ago

Pause, you could write an HTML to markdown library in half a day? Like, 4 hours? Or 12? Either way damn

epolanski 3 hours ago | parent [-]

One that gets me 90% there would take me few hours, one that gets me 99% there few months, which is why eventually people would rather pull a dependency.

williamcotton 3 hours ago | parent [-]

Or about 15 minutes with an LLM?

https://github.com/williamcotton/markdown-to-html-llm

  ;)
epolanski 2 hours ago | parent | next [-]

I love how it took you very short to implement...the wrong thing.

> I myself just the other day had the task of converting HTML to markdown

> you could write an HTML to markdown library in half a day

williamcotton 2 hours ago | parent [-]

LOL! Good point, my friend.

williamcotton an hour ago | parent [-]

Claude Code just added support for HTML to Markdown. Seems to work?

epolanski an hour ago | parent [-]

In any case, not following the point you're trying to make.

williamcotton 36 minutes ago | parent [-]

LLMs are pretty good at greenfield projects and especially if they are tasked with writing something with a lot of examples in the training data. This approach can be used to solve the problem of supply-chain attacks with the downside being that the code might not be as well written and feature complete as a third-party package.

neilv 3 hours ago | parent | prev [-]

In less time than that, you could `git clone` the desired open source package, and text search & replace the author's name with your own.

williamcotton 3 hours ago | parent [-]

And then still be subject to supply-chain attacks with all of the dependencies in whatever open source package you're cloning?

xrisk 42 minutes ago | parent [-]

you are aware that the app you just wrote with Claude pulls in dependencies, yes?

williamcotton 33 minutes ago | parent [-]

Not for the parser, only for the demo server! And I guess the dev dependencies as well, but with a much smaller surface area. But yeah, I don't think a TypeScript compiler is within the scope of an LLM.