【发布时间】:2021-01-29 10:59:07
【问题描述】:
我有一个文件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$.
我想使用WebTeX 将其转换为html。但是,我不希望智能引号---" 应该输出为基本直线,而不是两端弯曲---或智能破折号------ 应该是三个破折号,而不是 em-破折号。
似乎smart 选项对此很有用:pandoc manual、github 1、github 2。但是,我无法确定正确的语法。例如,我尝试过以下方法。
pandoc text.txt -f markdown-smart -t markdown-smart -s --webtex -o tex.html
很遗憾,这不起作用。
我在写问题时解决了这个问题,所以我将在下面发布答案! (剧透警告:只需删除 -t markdown-smart。)
【问题讨论】:
-
不是重复的,但与stackoverflow.com/q/53678363/2425163密切相关
标签: pandoc ligature smart-quotes