Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

counter: wrong evaluation #637

Open
newbie-02 opened this issue May 5, 2024 · 2 comments
Open

counter: wrong evaluation #637

newbie-02 opened this issue May 5, 2024 · 2 comments

Comments

@newbie-02
Copy link

looks as there are issues blocking the use of counters as proposed in e.g.
https://stackoverflow.com/questions/57301720/asciidoc-table-for-counter-values-and-text-references and
asciidoctor/asciidoctor-extensions-lab#111

Whatever I try I end up in doubled values, e.g.

= My AsciiDoc
:counter: recom: 0

* Testtext 
 
* R{counter:recom}: sentence1 
...
* R{counter:recom}: sentence2
...
* R{counter:recom}: sentence3


renders to:

My AsciiDoc
Testtext

R4: sentence1 …​

R5: sentence2 …​

R6: sentence3 

note the counting R4-R5-R6 instead of R1-R2-R3.
Assume it's a side effect from some 'two passes over the document' evaluation,
but that's guessing only.

TIA for any help, apologize if 'me bad', that's always an option.

rahmanusta added a commit that referenced this issue May 5, 2024
@rahmanusta
Copy link
Member

Hi, thank you, I found out the issue, and it should be fixed on the next release.

@newbie-02
Copy link
Author

hi, I have to thank you!

may I, I know it's cruel but really have an issue and see you as the only active programmer ...

again ping on #459? If it's not solveable pls. leave a comment about it, for me and others to know we have to look for alternatives.

:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants