4 ms·
I don't get all the hate for this. I think it's very nifty and actually has a number of easy applications right off the top of my head. You've basically just bu
by ComputerGuru 10y ago
I don't get all the hate for this. I think it's very nifty and actually has a number of easy applications right off the top of my head. You've basically just built an html-to-plaintext conversion utility, using your browser's HTML parser/render instead of writing your own. You've taken a difficult-to-parse syntax and changed it to plaintext, after which it can be marked up (or down) as needed for whatever application you have in mind.
Cool.
(immediate "tags" that my brain went to upon seeing this: printer mode, accessibility modes for visually impaired, text-to-kindle, text-to-audio)
- Retr0spectrum 10y agoI agree that this is cool, but it doesn't usefully convert back to plaintext, since the pseudo-elements don't get selected with the rest of the text if you try to copy and paste.
- clusmore 10y agoWhy does everything need to serve a purpose? I can believe the author wrote this just "Because I Can", which is a perfectly good reason to me. Most stuff I work on in my free time, I do just for me. If I think anybody else might be interested in it, not necessarily because it's useful but just because it's interesting, then I share it. Edit to add: Not suggesting that you think it needs to serve a purpose, this just felt like the most appropriate thread to add my comment to.
- lisper 10y ago> You've basically just built an html-to-plaintext conversion utility That's not what this is. Try copying the markdown so you can edit it as you suggest and you will find it doesn't work. The output looks like markdown, but it isn't markdown, and that's the source of the negative reactions. Having a one-to-one correspondence between representation and rendering is the main thing that makes markdown useful. Making something look like markdown but not actually be markdown strips it of nearly all of its utility.
- chx 10y agoIt only needs a little JS to make it work, though. You just need to manipulate the selected text as described here http://stackoverflow.com/a/36582615/308851 http://stackoverflow.com/a/36582615/308851 and https://github.com/niklasvh/jquery.plugin.clipboard https://github.com/niklasvh/jquery.plugin.clipboard here.
- blowski 10y agoSo 1. Take some HTML 2. Use CSS to make it look like Markdown 3. Use JavaScript to make it behave like Markdown. Why not skip step 2?
- coldtea 10y ago>Having a one-to-one correspondence between representation and rendering is the main thing that makes markdown useful. And looking simple with minimal formatting is the second thing. This idea taps on that second thing.