databio / markmeld

A Python package for melding markdown content and YAML structured data
https://markmeld.databio.org
BSD 2-Clause "Simplified" License
5 stars 2 forks source link

Figure reference/label doesn't work when I label my figure `methods` #26

Open nleroy917 opened 6 months ago

nleroy917 commented 6 months ago

Something odd I ran into the other day was that if I label my figure with \label{methods}, the figure references fail to populate in the output. Switching to \label{methods1}, then the figure appears. Not sure if its a reserved word that gets parsed, but it was odd.

Concrete example:

  1. Label figure as such:
    ![**\label{methods}Figure \ref{methods}. Overview of methods.](path/to/fig.pdf){fullwidth=t}
  2. Observe output:
image image
  1. Switch to:
    ![**\label{methods1}Figure \ref{methods1}. Overview of methods.](path/to/fig.pdf){fullwidth=t}
  2. Observe output:
image image
nsheff commented 2 months ago

I have run into this before, with another common word like 'method'. I don't have an explanation. It's got to be something clashing somewhere, either in pandoc or latex, with some reserved word.