How to configure and use pandoc

Hello hugo community.

I’m unable to configure hugo to use pandoc as external helper. I went through the docs and only could find information about AsciiDoc.

My config.toml file:

baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "harbor"
[markup]
	defaultMarkdownHandler = "pandoc"

And my contents are in content/posts/cont1.pdc file. When running the server locally math equations and code blocks are not rendered properly. The code blocks have no syntax highlighting and math equations are rendered as \(a\)

Contents of the cont1.pdc are

---
title: "Cont2"
date: 2021-05-29T14:06:49+05:30
draft: true
---

This in my site, put page 2

Testing math $a$

What am I doing wrong?

Output of hugo env

hugo v0.83.1+extended linux/amd64 BuildDate=unknown
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.16.3"

I seem to have found an issue.

The issue is with mathjax. When I use pandoc from terminal to convert a .md file to .html wiht --mathjax flag, same thing happens. I will dig into it some more.

Found the issue. The -s or --standalone flag needs to be supplied before the --mathjax flag, else this issue will appear. I don’t know if the it supplied or not. Will have to look into that.