[Tex/LaTex] Latex & Markdown files

luatexmarkdown

I am writing my project docs in latex but I have a bunch of markdown (.md) files to include as chapters. I have a problem when latex parses the md files it reads all the tables and figures as plane text but does not render the tables nor the images.
My environment is Mac OSX Mojave using MacTex-20180417, my editor is TexMaker with the LuaLatex engine.
My file looks like:

\usepackage[blankBeforeHeading, html, fencedCode, 
            inlineFootnotes, citations, definitionLists, 
            hashEnumerators, smartEllipses, hybrid]{markdown}

\begin{document}

\markdownInput{myfile.md}

\end{document}

myfile.md includes a basic table and a figure but the pdf output only displays the raw data. eg: |this|is|my|table|.

My question is: Is there anything else I have to setup or any package to inlude in order to render the table and the figure?

i add a minimal example I made here

Best Answer

You have to use the option pipeTables:

\documentclass{article}
\usepackage[blankBeforeHeading, html, fencedCode,
            inlineFootnotes, citations, definitionLists,
            hashEnumerators, smartEllipses, hybrid, pipeTables]{markdown}

\usepackage{filecontents}
\begin{filecontents*}{\jobname.md}
This file is generated as a test for tables:

| Version | Date        |Paragraph| Description       | Author|
|:--------|:------------|---------|:------------------|-------|
| 1.0     | 12/Abril/19 | All     | initial commit    | RACG  |
| 1.0     | 12/Abril/19 | All     | initial commit    | RACG  |

\end{filecontents*}

\begin{document}
  \markdownInput{\jobname.md}
\end{document}

enter image description here

Related Question