3 ms·
> HTML is unpleasant to write. Is it really, though? HTML is a very deep toolbox, but to write blog articles you really only need a handful of tools on the su
by CivBase 6y ago
> HTML is unpleasant to write.
Is it really, though? HTML is a very deep toolbox, but to write blog articles you really only need a handful of tools on the surface level. If you were previously using markdown, all you need to do is review the basic syntax[0] to figure out the equivalent HTML tags. Writing HTML is hardly any less pleasant, albeit a little more verbose, if you just stick to those tags.
I think primary value of languages like markdown is input sanitation. If a user makes a mistake in their markdown syntax, there's no risk of it breaking other elements on the page. But when you as the host are the only user, I say pure HTML is the way to go.
[0] https://www.markdownguide.org/basic-syntax/ https://www.markdownguide.org/basic-syntax/
- bananicorn 6y agoTo add to that - if you prefer writing the body of the post itself in markdown, and write in VIM, here's a little snippet that might help: :%!markdown_py where markdown_py is your markdown-to-html tool of choice. This will take the whole buffer and turn it into HTML; Otherwise, just select what you want transformed in visual mode, press : and go use it like this: :'<,'>!markdown_py Just felt the need to share - any command line utility can be used in VIM :) (Emacs, VSCode and other editor-using people feel free to chime in, I'm sure there's lots of cool approaches to this)