我有一个文件text.txt
,其中包含非常基本的乳胶/降价。例如,它可能是以下内容。
Here is some basic maths: $f(x) = ax + b$ defines a straight line, often called a "linear" function---but it's not _actually_ a linear function, eg $f(0) \ne 0$.
我想将其转换为html
使用WebTeX
. 但是,我不希望智能引号——"
应该输出为基本直线,而不是两端弯曲——或者智能破折号——---
应该是三个破折号,而不是一个破折号。
似乎该smart
选项对此有好处:pandoc manual,github 1,github 2。但是,我无法确定正确的语法。例如,我尝试过以下方法。
pandoc text.txt -f markdown-smart -t markdown-smart -s --webtex -o tex.html
不幸的是,这不起作用。
我在写问题时解决了这个问题,所以我将在下面发布答案!(剧透警告:只需删除-t markdown-smart
。)