# Referencing tables in pandoc

Pandoc allows referencing images via inline Latex commands. However, it seems it does not work for tables. I'm aware of several workarounds, including manipulating a resulting TeX file manually, but is there a way, for example via inline Latex, to get pandoc to output Latex/PDF/... with automatic table references, like the following (which does not work):

See table \ref{example}.

----------
my  table
--- ------
a   1
b   2
----------
Table \label{example}: An example that does not work.

-

See table \ref{my_table}.

Table: (table title) \label{my_table}

-----------------------