Live data from Hacker News

Pandoc

pandoc.org

1–10 of 213 posts

Re: Pandoc

#2
I love pandoc. I've been using it intermittently for years to turn my Markdown and org-mode documents into other formats. Just wish it would take Asciidoc as an input format.

Re: Pandoc

#4
Pandoc is great software for converting among file formats, such as text, markdown, HTML, PDF, etc.

Example:

    pandoc in.md -o out.html -V pagetitle="My Title" --to=html5 --template="my.html" --css "my.css"
The example converts a markdown file to HTML, using a given title, a template file, and a stylesheet file.

The pipeline is also well implemented with Haskell, which is good for writing your own fast functional transformations.

Re: Pandoc

#5
I use Pandoc to convert directories of Markdown files into static HTML websites.

Here's the build command for responsive.style[1]:

    pandoc $file -f markdown -t html5 -H templates/header-prod.html -B templates/nav.html -A templates/footer-prod.html -o (echo "../$file" | sed '$s/\.md$/.html/') -s  --data-dir=./ --highlight-style breezedark --variable=file:(echo "$file" | sed '$s/\.md$/.html/')
Works beautifully!

1: https://github.com/tomhodgins/responsive.style/blob/master/s...

Re: Pandoc

#10
What don't I use it for?

+ Static websites from any input to html

+ Markdown & TeX & References to pdf for academia

+ Generating manpages for new tools

+ Generating ebooks

... Let's just say I get a bit lost when it isn't available.

Post reply on HN