jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.04k stars 3.35k forks source link

Problems with .zsh and Pandoc , unexpected " #6484

Closed freddieventura closed 4 years ago

freddieventura commented 4 years ago

I'm trying to use pandoc 2.5 to convert an .md file to html (among other filetypes I want to render this file to) and I'm finding a problem probably related to the shell I'm using

I'm using Debian, with pandoc 2.5 , and I installed texlive2020.iso , and added its path to my .zsh (I'm using .zsh instead of bash that may be causing the problem)

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

.

Asking a question? Please use the pandoc-discuss mailing list instead: https://groups.google.com/forum/#!forum/pandoc-discuss This tracker is for bug reports and enhancement requests.

Reporting a bug? Please include your pandoc version and an example that allows us to reproduce the problem (complete input, exact command line used, expected and actual output). The smaller the example, the better.

jgm commented 4 years ago

Please see the answer I sent on the mailing list.