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

Reference from a header to a header defined below is not rendered correctly

Open mmatrosov opened this issue 5 years ago • 1 comments

Description

In the preview pane, the reference to a header is not rendered correctly if the header is defined below and is used in another header.

System Information

Version: 1.45.1 (system setup) Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a Date: 2020-05-14T08:27:35.169Z Electron: 7.2.4 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.17134

AsciiDoc extension v2.7.15

To Reproduce

Steps to reproduce the issue:

  1. Create .adoc file
  2. Enter this text:
[[HEADER1]]
=== header 1

Refer to <<HEADER1>> in text

Refer to <<HEADER2>> in text

=== Refer to <<HEADER1>> in a header

=== Refer to <<HEADER2>> in a header

[[HEADER2]]
=== header 2

Screenshots & Files

image

mmatrosov avatar Jun 02 '20 10:06 mmatrosov

Thanks for reporting @mmatrosov

I've tested this using Asciidoctor Ruby 2.0.10 and observed the same issue. So I believe this is not an issue with this extension but an issue in Asciidoctor core. I'd suggest you file an issue in https://github.com/asciidoctor/asciidoctor if there is not already one (I had a quick look but couldn't find it).

danyill avatar Jun 21 '20 01:06 danyill