26
What do you use for writing HTML by hand?
(programming.dev)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
I use Vim, but I don't really write pure HTML. I write Markdown and convert it into HTML as needed.
Markdown covers 95% of my HTML use cases, and I embed pure HTML into the Markdown for the last 5%.
My Markdown tools (mostly command line utilities such as Pandoc) handle HTML inside Markdown quite nicely. A few need a special "hey, there's HTML in here, pass it through unchanged" command line flag, if I recall correctly.
In a few advanced cases I'll use a variant of Jinja2 template syntax, and convert that into HTML - often with some converted Markdown mixed into it at build time.
Out of curiosity, what do you use to convert markdown to HTML?
There's lots of good options. I currently prefer https://github.com/gomarkdown/mdtohtml
I think they said Pandoc. I have used that too some.
Yeah. Pandoc can get the job done as well, if I recall.
Edit: I lately like to use a
go
utility for the Markdown to HTML, and then I usepandoc
to convert HTML to any other document format I need, such as PDF.