I\'m currently writing a document in markdown and I\'d like to make a reference to an image from my text.
this is my text, I want a reference to my image1 [h
With pandoc-crossref you can cross reference figures with the following syntax:
{#fig:label}
Then reference the figure in the text similar to the citation syntax [@fig:label] and compile with --filter pandoc-crossref (needs to come before --filter pandoc-citeproc if you're using that also).
You can control the styling with e.g. \usepackage[font=small,labelfont=bf]{caption} in header-includes.
A neat related trick if you use \listoffigures in latex, is this lua-filter, which allows you to set a short title instead of having the entire figure legend showing up in your list of figures:
{#fig:label short-caption='my short caption'}
then compile with --lua-filter short-captions.lua.