
#pandoc -f html -t plain un-proces-de-plus.html -o un-proces-de-plus.txt
#pandoc -f html -t plain un-proces-de-plus.html -o un-proces-de-plus.md --wrap=none

#pandoc -f html -t plain $1 -o "${1%.html}.txt" --wrap=none

#curl -LO http://b.enjam.info/panam/styling.css # https://github.com/bgw/pan-am

pandoc -f markdown -t html5 "$1" -o "../html/${1%.md}.html" --standalone --css=styling.css

#pandoc -f markdown -t html5 "$1" -o "${1%.md}.html" --standalone --css=styling.css --metadata title="ROBERT FAURISSON ― $2" --variable title="ROBERT FAURISSON"

#pandoc -f markdown -t pdf $1 -o "${1%.md}.pdf" --css=styling.css

#pandoc -f markdown -t fb2 "$1" -o "${1%.md}.fb2"

## -----------------------------------------------------------------------------

exit 0

CSS=../downstyler.css
#CSS=../github-pandoc.css
#CSS=../tacit-css-1.9.0.min.css
#CSS=../pandoc.css
#CSS="https://cdn.jsdelivr.net/npm/sakura.css/css/sakura.css"
#CSS="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css"
#CSS="https://raw.githack.com/waldyrious/downstyler/master/downstyler.css"

#~ pandoc -f markdown-auto_identifiers -t html --lua-filter=promote-headers.lua \
#~ -s $1.md -o $1.html \
#~ --css=$CSS

#~ pandoc -f markdown-auto_identifiers -t html --shift-heading-level-by=-1 \
#~ -s $1.md -o $1.html \
#~ --css=$CSS

pandoc -f markdown-auto_identifiers -t html --metadata-file metadata.yaml \
-s $1.md -o $1.html \
--css=$CSS

#~ pandoc -f markdown-auto_identifiers -t html \
#~ -s $1.md -o $1.html \
#~ --metadata pagetitle="pagetitle" \
#~ --variable title="" \
#~ --css=$CSS

#~ pandoc -f markdown-auto_identifiers -t html \
#~ -s README.md -o livret.html \
#~ --metadata pagetitle="pagetitle" \
#~ --variable title="" \
#~ --css=$CSS \
#~ --embed-resources --standalone

## https://pandoc.org/chunkedhtml-demo/7.2-headings-and-sections.html
