Open robwalton opened 6 years ago
I've found the root of the problem and described it in this more precise ticket: Labels which include a colon in ATX-style headings are altered before passing to pandoc. It turns out that pandoc strips the sec:
from the {#sec:testing}
label before calling pandoc.
(Apologies for filing one of these in your atom tracker and one in the vscode one! The problem impacts both.)
I am using the popular pandoc-crossref filter in both atom and vscode. The filter works properly for setext-style headings but not for ATX-style headings.
The problem
The following works in the preview window (using setext-style headings).
Whereas this, using ATX-style headings, results only in the error
Undefined cross-reference: sec:testing
in the preview panel.It works fine from outside vscode using:
Configuration
My user settings include only:
Versions
EDITED: To indicate problem occurs in both vscode and atom