4 ms·
Is this rendering Markdown to HTML on the fly in my web browser? Just render the markdown to HTML once on the server and upload it for the love of God. That b
by mrr54 7y ago
Is this rendering Markdown to HTML on the fly in my web browser?
Just render the markdown to HTML once on the server and upload it for the love of God.
That being said, the article is entirely correct.
- AnIdiotOnTheNet 7y agoBecause then when you edit the markdown you have to take an additional step.
- danaris 7y agoThat depends entirely on how you have your workflow set up.
- AnIdiotOnTheNet 7y agoSure, it's a matter of how complicated you want your workflow to be. The way things are right now, the author can edit the markdown file directly and be done with it. It's simple and straight-forward, low-effort and low cognitive load.
- danaris 7y agoI would imagine it would be possible to set up their system such that they could edit the Markdown file, and a helper process would immediately pick up that the file had been edited and re-run the local rendering to static HTML.
- AnIdiotOnTheNet 7y agoYes, great, now you've complicated the workflow. What if the service fails to run? Or fails to pick up the changes? Now you've got another thing to think about. Is the overengineering so ingrained in the average HN user that they cannot see why someone might not bother with that?
- danaris 7y agoIn the everyday active workflow—the actions the author actually has to take each time—it doesn't add any complication. It merely adds complexity in the processing, which is certainly something worth considering. However, in a case like this, the alternative—as we can already see—is to add complexity for every single reader on the front-end. So there's not really a perfect solution here—either the author or the reader has to deal with some complexity.
- anderspitman 7y agoPlease see my explanation here: https://news.ycombinator.com/item?id=22038862 https://news.ycombinator.com/item?id=22038862
- droithomme 7y agoIMNSHO, it would be better to fix your site rather than post "please see explanation" over and over in multiple comments. Don't you think?
- deleted 7y ago[deleted]