Skip to content

Using Markdown inside of tabularx or commands #148

Answered by Witiko
FGUFA asked this question in Q&A
Discussion options

You must be logged in to vote

@FGUFA \begin{markdown} ... \end{markdown} must appear at the top level of a document. It cannot be produced as a result of expansion (\newcommand) or inside environments that scan their content (\begin{tabular}, \begin{frame}). This is because \begin{markdown} must be able to scan its contents first before TeX gets to incorrectly tokenize it according to TeX's rules, throwing away what it perceives as comments after percent signs and all sorts of other nasty things.

If you save your markdown document into a separate file (such as my-document.md) and use the \markdownInput{my-document.md} command, this limitation no longer applies. Admittedly, this is less convenient.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FGUFA
Comment options

Answer selected by FGUFA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants