# Package markdown failing with Miktex

I'm using Miktex 2.9 for Windows. When compiling:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{markdown}
\begin{document}

\begin{markdown}
| xyz | abc |
| --- |: --: |
| 0 | 5 |
|5 |1 |
\end{markdown}

\end{document}


with miktex-pdflatex.exe (running as administrator), I get:

Package markdown Error: I can not access the shell.

Note: The package markdown has been installed (automatically downloaded by Miktex) when I first compiled this code.

• You need to run with shell escape and if I'm not mistaking it is based on Lua and therefore requires LuaLaTeX. – TeXnician Sep 11 '18 at 10:47
• If I understand mirrors.ctan.org/macros/generic/markdown/markdown.pdf correctly you need to enable shell-escape: tex.stackexchange.com/q/88740/35864 – moewe Sep 11 '18 at 10:48
• @TeXnician is doesn't requires lualatex it works with pdflatex too. But with pdflatex it must be able to call luatex and so needs shell-escape. – Ulrike Fischer Sep 11 '18 at 10:49
• @UlrikeFischer Oh, okay, but at least the shell-escape part was correct. – TeXnician Sep 11 '18 at 10:51
• The table does not work for me either, but other markdown instructions work just fine. That makes me think that this table syntax is nor supported (at least not without further options). I could find nothing on a first glance into the manual. – moewe Sep 11 '18 at 11:05

As mentioned in this answer and in comments, a partial solution is to do:

miktex-pdflatex.com --shell-escape mydocument.tex


miktex-pdflatex.com mydocument.tex


But then, even if compilation works,

begin{markdown}
| xyz | abc |
| --- |: --: |
| 0 | 5 |
|5 |1 |
\end{markdown}


is still not rendered, so probably the markdown package doesn't support tables.

• A wild guess, did you try to place a space before the first colon in the separator line: | --- | : --: | and in the data line | 5 | 1 |. Maybe also try without the colons – albert Sep 11 '18 at 15:05