Open bjhijmans opened 4 years ago
This is by design. Which is perhaps somewhat unintuitive, but pandoc-crossref tries to be conservative, which means it doesn't touch things it's not sure what to do with.
At the moment, pandoc-crossref can be coerced to make two exceptions: for sections (autoSectionLabels
) and equations (autoEqnLabels
). I'm going to treat this as a feature request. Can't promise I'll get to it soon though.
test2.txt has two code blocks, one with an id and one without. After running
pandoc test2.txt --filter=/opt/pandoc-crossref -t html
the results are as follows:I would expect to see something closer to
It doesn't make sense to me that I can't get captions and incremented numbering without providing an id.