Hacker News new | ask | show | jobs
by rubyn00bie 2818 days ago
This is kind of neat but why not just use pandoc?

pandoc -s input.md -t html -o output.html

https://pandoc.org/

4 comments

Pandoc is kind of neat but why not just use markdown?

    markdown input.md > output.html
It is a personal preference but I would rather know one tool they is more versatile (especially for such a task)
Why would you want to constantly recompile documents every time you make an edit to them? Why would you want to juggle two files for every document you produce?
For what it's worth, this is the problem GitLab Pages solves. A simple "git push" to a properly to figured repo will rebuild and redeploy your static site, the actual html output doesnt go into the repo.
This is for people who don't want to setup and manage a deployment pipeline hooked up to a git source code repo.
Sooo a live editor like this? http://www2.hyperfiddle.net/:markdown/ If you like that, here's a little tweetstorm about hyperfiddle markdown: https://twitter.com/dustingetz/status/1048686717975388160
Wow, thank you for this. That's quite incredible.

Scriptable Word to HTML sounds so useful.

Exactly my thoughts. That’s where I landed for my site, and it’s really simple. Edit file, pandoc, scp to server, done.