Using with
let readerOptions = defaultHakyllReaderOptions
let writerOptions = defaultHakyllWriterOptions
{ writerHTMLMathMethod = MathJax "" }
pandocCompilerWith readerOptions writerOptions
and add script to global html template
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
</script>