Do Grid Tables Support Inline Code? #11762
-
DescriptionHello, I'm trying to use an inline code block in a 'grid' table. (I need multi-line blocks, so I can't use pipe-tables and I would prefer to stay "Markdown-ish" instead of writing HTML directly.) In the below document, the pipe table seems to render properly, while the grid table is a bit messy. Is there a way to do what I'm hoping or do I need to bite the bullet and create table objects in R/Python?
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Your grid table is malformed, so even without inline code, it won't work. Anyhow, if with the proper and documented grid table syntax, it does not work, then you have your answer. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, there is no reliable way to use inline code within grid-tables as it's impossible to ensure proper alignment of the generated markdown (confirmed by @cscheid). The pandoc-ext/list-table extension filter can be used instead and provides much of the same functionality (h/t @Steinthal ) To install, run
and then add
to the relevant header metadata to activate. (Note that this extension must be reinstalled on a per-project basis.) Thanks All! |
Beta Was this translation helpful? Give feedback.
Unfortunately, there is no reliable way to use inline code within grid-tables as it's impossible to ensure proper alignment of the generated markdown (confirmed by @cscheid).
The pandoc-ext/list-table extension filter can be used instead and provides much of the same functionality (h/t @Steinthal )
To install, run
and then add
to the relevant header metadata to activate. (Note that this extension must be reinstalled on a per-project basis.)
Thanks All!