asciidoctor-vscode icon indicating copy to clipboard operation
asciidoctor-vscode copied to clipboard

Preview of xref to figure in page no longer renders the auto generated labels

Open elsav-emrs opened this issue 3 years ago • 5 comments

When you preview asciidoc pages in vscode, the auto generated labels of figures such as the following code are no longer rendered.

As shown in xref:fig_test[xrefstyle=short], blabla...

[[fig_test]]
.A title for my image
image::myimage.png[]

Preview is giving this

image

This is a recent regression. Previously it was correctly rendered as: "As shown in Figure 1, blabla..."

Using Version: 1.62.2 (user setup) Commit: 3a6960b964327f0e3882ce18fcebd07ed191b316 Date: 2021-11-11T20:56:38.428Z Electron: 13.5.2 Chrome: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.17134

elsav-emrs avatar Nov 16 '21 10:11 elsav-emrs

This also appears to affect generated HTML output. It also occurs when reftext is set explicitly on the block.

tim-elmer avatar Nov 22 '21 22:11 tim-elmer

Strangely when I first noticed this problem, none of my labels were rendered correctly.... some days later it suddenly disappeared and everything rendered correctly.... and today it happened again - but only for some labels (refs added today and appendix).

Version: 1.63.0 (user setup) Commit: 7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e Date: 2021-12-07T06:26:56.179Z Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Windows_NT x64 10.0.17763

jsieland avatar Dec 13 '21 10:12 jsieland