pandoc usage
installation
download latest dep package from : https://github.com/jgm/pandoc/releases/tag/2.14.2
install this version (synaptic bevat een oudere versie pandoc)
basic usage
- -f : the source file format, e.g. html, markdown, etc. – default =
- -t : the destination file format, e.g. html, markdown, etc. – default =
- -o : the name of the generated file
- -s : produce output with an appropriate header and footer
(e.g. a standalone HTML, LaTeX, TEI, or RTF file, not a fragment)
or with metadata included
==> no “-” parameter = input file == do pandoc on file X
pandoc -o output.md input.html
pandoc test1.md -t html -s -o test1.html
pandoc X.html -f html -t markdown-strict -o X.md
doc
https://pandoc.org/MANUAL.html
https://pandoc.org/getting-started.html
https://blog.atwork.at/post/Convert-documents-with-Pandoc
(enkel de sectie over sed is interessant :)
http://www.cantoni.org/2019/01/27/converting-html-
markdown-using-pandoc
https://pandoc.org/demos.html
use cases
zie: pandoc - use cases