首页 > 解决方案 > .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

标签: markdownzshpandoc

解决方案


推荐阅读