diff --git a/Makefile b/Makefile index 67053cf1a1acdf021f1388a12224dd72da4e5e52..35bdb98555afdc474fb72549c1b1ee59273a2ac9 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,9 @@ all: public/good_practices.html \ README.md public/good_practices.html: good_practices.tex bibliography.bib github-pandoc.css - pandoc good_practices.tex --bibliography=bibliography.bib -c github-pandoc.css --citeproc --toc --standalone --number-sections -o public/good_practices.html + pandoc good_practices.tex --bibliography=bibliography.bib -c github-pandoc.css --citeproc --toc --standalone --number-sections -o public/good_practices.html \ + && sed -Ei 's|>\[sec:(.*)\]<|>\1<|g' public/good_practices.html README.md: good_practices.tex bibliography.bib - pandoc good_practices.tex --bibliography=bibliography.bib --citeproc --toc --standalone --number-sections -o README.md + pandoc good_practices.tex --bibliography=bibliography.bib --citeproc --toc --standalone --number-sections -o README.md \ + && sed -Ei 's|\[\\\[sec:(.*)\\\]\]|[\1]|g' README.md \ No newline at end of file