markdown - .zsh 和 Pandoc 的问题,出乎意料“
问题描述
我正在尝试使用 pandoc 2.5 将 .md 文件转换为 html(在我想将此文件呈现到的其他文件类型中)并且我发现一个可能与我正在使用的 shell 有关的问题
我正在使用带有 pandoc 2.5 的 Debian,我安装了 texlive2020.iso ,并将其路径添加到我的 .zsh (我使用 .zsh 而不是可能导致问题的 bash )
pandoc -f markdown -t html notes_linux_jun2020.md -o notes_linux_jun2020.html
[WARNING] Could not convert TeX math 'SHELL - Download the other shell you want to install + https://github.com/ohmyzsh/ohmyzsh + sh -c "', rendering as TeX:
sh/ohmyzsh + sh -c "
^
unexpected '"'
expecting "\\bangle", "\\brace", "\\brack", "\\choose", "\\displaystyle", "{", letter, digit, ".", "\\mbox", "\\text", "\\textbf", "\\textit", "\\textrm", "\\textsf", "\\texttt", "\\bm", "\\boldsymbol", "\\mathbb", "\\mathbf", "\\mathbfcal", "\\mathbffrak", "\\mathbfit", "\\mathbfscr", "\\mathbfsfit", "\\mathbfsfup", "\\mathbfup", "\\mathbold", "\\mathcal", "\\mathds", "\\mathfrak", "\\mathit", "\\mathrm", "\\mathscr", "\\mathsf", "\\mathsfit", "\\mathsfup", "\\mathtt", "\\mathup", "\\pmb", "\\symbf", "\\texttt", "\\sqrt", "\\surd", "\\mspace", "\\hspace", "\\mathop", "\\mathrel", "\\mathbin", "\\mathord", "\\mathopen", "\\mathclose", "\\mathpunct", "\\phantom", "\\boxed", "\\overset", "\\stackrel", "\\underset", "\\frac", "\\tfrac", "\\dfrac", "\\binom", "\\genfrac", "\\substack", "_", "^", "\\begin", "\\ensuremath", "\\bigg", "\\Bigg", "\\big", "\\Big", "\\biggr", "\\Biggr", "\\bigr", "\\Bigr", "\\biggl", "\\Biggl", "\\bigl", "\\", "\\left", "\\not", "!", "'", "''", "'''", "''''", "*", "+", ",", "-", ".", "/", ":", ":=", ";", "<", "=", ">", "?", "@", "~", "\\operatorname" or end of input
解决方案
推荐阅读
- pandas - 如何根据熊猫中的条件提取数据库?
- html - 如何在 HTML 和 CSS 中的标题中的两个元素之间平均间隔一个元素
- django - POST表单提交后django显示消息问题?
- swift - 核心数据:返回对象的通用类函数
- python - Open AI Gym:如何将每个步骤中的多个动作传递到我们的自定义健身房环境?
- laravel - 如何在 laravel 中编写子查询
- python - 在 Python 的内存中不使用额外空间/列表/数组的反向列表
- python - Python的列表不删除的pop和remove方法
- node.js - 无法为我的集合获取 MongoDB 聚合管道的正确组总数
- swift - 将子视图拥有的@StateObject 用作兄弟视图中的@ObservedObject