#!/bin/zsh
pandoc --biblatex -M cref=true --top-level-division=chapter --bibliography test.bib -o test.tex test.md && \
xelatex -synctex=1 -interaction=stopmode -file-line-error index.tex && \
biber index.bcf --validate_datamodel && \
xelatex -synctex=1 -interaction=stopmode -file-line-error index.tex && \
xelatex -synctex=1 -interaction=stopmode -file-line-error index.tex
