The issue here is that, when using the default `pageCompiler`, your
page passes through Pandoc. Pandoc unfortunately strips away this
information, giving you the "wrong" HTML.
The solution is not to use `pageCompiler`. The definition of
`pageCompiler` is, put simply, something like:
pageCompiler =
readPageCompiler >>>
addDefaultFields >>> -- Sets some things like $path$
arr applySelf >>> -- Used to fill in $var$s in the page
pageRenderPandoc
You can add your own version in your `site.hs` file:
myPageCompiler =
readPageCompiler >>>
addDefaultFields >>> -- Sets some things like $path$
arr applySelf >>> -- Used to fill in $var$s in the page
And using this instead of `pageCompiler` should solve the issue. If it
doesn't, or if there's anything that's not clear, do not hesitate to
send a mail.
Hope this helps,
Cheers,
Jasper