Dear context list, I love simple tables in markdown like this one \startmarkdown Right Left Center Default ------- ------ ---------- ------- 12 12 12 12 123 123 123 123 1 1 1 1 Table: Demonstration of simple table syntax. \stopmarkdown Is there a way to reference this table? With \starttabulate (\stoptabulate) tables can be referenced with \placetable, but \placetable just creates another (empty) table in case of a markdown table. Thanks, Xenia
On 4/9/2013 9:29 PM, Xenia wrote:
Dear context list,
I love simple tables in markdown like this one
\startmarkdown Right Left Center Default ------- ------ ---------- ------- 12 12 12 12 123 123 123 123 1 1 1 1
Table: Demonstration of simple table syntax. \stopmarkdown
Is there a way to reference this table? With \starttabulate (\stoptabulate) tables can be referenced with \placetable, but \placetable just creates another (empty) table in case of a markdown table.
Also if you put {} around the code? or use \startplacetable{xx} ... \stopplacetable ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 10.04.2013 01:02, Hans Hagen wrote:
On 4/9/2013 9:29 PM, Xenia wrote:
Dear context list,
I love simple tables in markdown like this one
\startmarkdown Right Left Center Default ------- ------ ---------- ------- 12 12 12 12 123 123 123 123 1 1 1 1
Table: Demonstration of simple table syntax. \stopmarkdown
Is there a way to reference this table? With \starttabulate (\stoptabulate) tables can be referenced with \placetable, but \placetable just creates another (empty) table in case of a markdown table.
Also if you put {} around the code? or use
\startplacetable{xx} ... \stopplacetable
No this creates no caption and a second (empty) table with the right caption.
On 4/10/2013 2:44 PM, Xenia wrote:
On 10.04.2013 01:02, Hans Hagen wrote:
On 4/9/2013 9:29 PM, Xenia wrote:
Dear context list,
I love simple tables in markdown like this one
\startmarkdown Right Left Center Default ------- ------ ---------- ------- 12 12 12 12 123 123 123 123 1 1 1 1
Table: Demonstration of simple table syntax. \stopmarkdown
Is there a way to reference this table? With \starttabulate (\stoptabulate) tables can be referenced with \placetable, but \placetable just creates another (empty) table in case of a markdown table.
Also if you put {} around the code? or use
\startplacetable{xx} ... \stopplacetable
No this creates no caption and a second (empty) table with the right caption.
and what about: \startbuffer \startmarkdown ... \stopmarkdown \stopbuffer \placetable{whatever}{\getbuffer} ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 10.04.2013 15:10, Hans Hagen wrote:
On 4/10/2013 2:44 PM, Xenia wrote:
On 10.04.2013 01:02, Hans Hagen wrote:
On 4/9/2013 9:29 PM, Xenia wrote:
Dear context list,
I love simple tables in markdown like this one
\startmarkdown Right Left Center Default ------- ------ ---------- ------- 12 12 12 12 123 123 123 123 1 1 1 1
Table: Demonstration of simple table syntax. \stopmarkdown
Is there a way to reference this table? With \starttabulate (\stoptabulate) tables can be referenced with \placetable, but \placetable just creates another (empty) table in case of a markdown table.
Also if you put {} around the code? or use
\startplacetable{xx} ... \stopplacetable
No this creates no caption and a second (empty) table with the right caption.
and what about:
\startbuffer \startmarkdown ... \stopmarkdown \stopbuffer
\placetable{whatever}{\getbuffer}
Unfortunately not. Marco might be right and this is a markdown issue …
On 2013–04–09 Xenia wrote:
\startmarkdown Right Left Center Default ------- ------ ---------- ------- 12 12 12 12 123 123 123 123 1 1 1 1
Table: Demonstration of simple table syntax. \stopmarkdown
Is there a way to reference this table?
I might get you wrong here, but I think this is a markdown/pandoc issue. Look at the ConTeXt code generated for section references: %%% section.markdown %%%%%%%%%%%%%%%%%%%% Whatever ======== See [section](#whatever) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% section.tex %%%%%%%%%%%%%%%%%%%%%%%%% \section[whatever]{Whatever} See \in{section}{}[whatever] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Now compare this with the code generated for tables on the other hand: %%% table.markdown %%%%%%%%%%%%%%%%%%%%%% Right Left Center Default ------- ------ ---------- ------- 12 12 12 12 123 123 123 123 1 1 1 1 Table: Caption See [table](#caption) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% table.tex %%%%%%%%%%%%%%%%%%%%%%%%%%% \placetable[here]{Caption} \starttable[|r|l|c|l|] \HL \NC Right \NC Left \NC Center \NC Default \NC\AR \HL \NC 12 \NC 12 \NC 12 \NC 12 \NC\AR \NC 123 \NC 123 \NC 123 \NC 123 \NC\AR \NC 1 \NC 1 \NC 1 \NC 1 \NC\AR \HL \stoptable See \in{table}{}[caption] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% As you can see, no reference is created. I don't even know if references are supported in markdown in the same way section references are. If this is actually supposed to work, then I assume a bug in the pandoc context output filter. Marco
participants (3)
-
Hans Hagen
-
Marco Patzer
-
Xenia