Skip to content

Instantly share code, notes, and snippets.

@alexandreteles
Created March 25, 2015 14:58
Show Gist options
  • Save alexandreteles/3be33daffdf7eabb751f to your computer and use it in GitHub Desktop.
Save alexandreteles/3be33daffdf7eabb751f to your computer and use it in GitHub Desktop.
Wrappers for Pandoc and Tidy-html5
corrigiridt () {
echo "Uso: corrigiridt arquivo.html";
tidy5 --indent yes -m -w 160 -utf8 -ashtml --drop-empty-elements no --drop-empty-paras no $1
}
gerarhtml5 () {
echo "Uso: gerarhtml5 pandoc.template header.html footer.html origem distino";
pandoc -S --template=$1 -B $2 -A $3 -f markdown -t html5 -s $4 -o $5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment