-
Notifications
You must be signed in to change notification settings - Fork 10
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
AsciiDoc footnoteref renders without text #524
Comments
@KucharczykL I've inserted the above text in a ADoc file and created HTML and PDF. This is a screenshot from HTML (similar with PDF): The footnote reference is correctly rendered. I used the following packages on openSUSE Leap 15.4:
If you can confirm this, we can close this issue. 🙂 |
Hi @tomschr, I cannot confirm that on neither openSUSE Tumbleweed nor in the RN GitLab repo CI. I've created a test MR here: https://gitlab.suse.de/documentation/release-notes-sles/-/merge_requests/343 You can see the failure log in https://gitlab.suse.de/documentation/release-notes-sles/-/jobs/1702745:
On Tumbleweed: > rpm -q daps suse-xsl-stylesheets
daps-4.0.beta1-182.1.noarch
suse-xsl-stylesheets-2.99.20220216-76.1.noarch |
@KucharczykL Thanks for the hint, Lukáš. I've tried it solely with DocBook, not GeekoDoc. In GeekoDoc, I've tried some ideas:
It's certainly a stylesheet bug as |
Fix #524: Add footnote template in mode=xref-to
Hello @tomschr, I've just tested this and it's only partially fixed. If you try to generate this code: Regular text footnote:testid[Footnote text]
More regular text footnote:testid[] You get this:
This seems to be correct, but the second link doesn't work! This is the generated HTML: <p>
Regular text
<a href="#ftn.testid" class="footnote">
<sup class="footnote" id="testid">[1]</sup>
</a>
More regular text
<a class="xref" href="#testid"></a>
<a href="ftn.testid">
<sup>[1]</sup>
</a>
</p> |
@KucharczykL Thanks for the wonderful summary! Much appreciated! 👍 I've created PR #579 as I've spotted a typo. However, I couldn't try it out yet. If you have time, could you have a look and see if that works better? If I'm not completely mistaken, the "#" is missing in front of "ftn.testid" value. |
@tomschr Nice, that seems to have fixed! Thank you for such a quick response 🙂 |
Problem Description
Result:
Expected Behaviour
Additional context
The text was updated successfully, but these errors were encountered: