#!/bin/sh set -e #stem="Greens-IslandsofResiliences" stem="Greens-IslandsofResilience" pdftohtml -q -c -s -i -noframes -stdout "$stem.pdf" tmp infile=tmp.html outfile="${2:-$(basename "$infile" .html).md}" #perl ./normalize-html.pl tmp.html | less perl ./normalize-html.pl tmp.html \ |pandoc --normalize --no-wrap --parse-raw -f html -t markdown -o "$stem.md" pandoc --standalone --toc --css=styling.css -f markdown -t html5 -i "$stem.md" -o "$stem.html"