Pandoc Error: ! missing $ inserted

Pandoc Error: ! missing $ inserted

我正在尝试使用 Pandoc 将降价文件转换为 pdf。 markdown 是用 Atom 编辑器编写的。为简单起见,我只包括方程式。

markdown文件内容为

\[
\frac{\partial \theta}{\partial t}= \mathrm{K}(\theta)\left( \frac{\partial h}{\partial z}\right) +1
\]

我 运行 来自 PowerShell

的以下命令
pandoc testfile1.md -s -o testfile1.pdf

并产生了以下错误:

! Missing $ inserted.
<inserted text>
                $
l.53 {[} \frac{\partial \theta}{\partial t}

pandoc.exe: Error producing PDF

预览可以显示公式,但转换时出错。如果我用 $$ 替换 \[\] 我会收到所需的输出。

我的问题是:我可以不使用\[\]吗?

我也附上快照

My question is: Can I not use \[ and \]?

不,你不能。在 pandoc markdown:

Anything between two $ characters will be treated as TeX math.