-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement behavior for "code-" anchors #154
Labels
tooling
Topics related to tooling and tool extension development
Comments
27 tasks
First assessmentWhat works
What does not work yet
What will not work
|
Extension update is ready for testing: https://code.asam.net/common/asam-antora-extensions/-/tree/update_loft_and_anchors |
Suggestion for rules
Comparison of example and source code highlighting
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject
Define expected behavior for the use of the anchor type "code-" regarding Antora extensions.
Description
When the extension for handling anchors was written, only requirements for the anchors "top-", "sec-", "fig-", and "tab-" were specified.
Now, there also is some specification on the use of the anchor "code-": https://asam-ev.github.io/asam-project-guide/asamprojectguide/latest/compendium/Editorial_guide/07_source_code.html
The extension, however, will mark these anchors as "non-standard" and will execute some default behavior for them, which may be incorrect in the context of ASAM.
Suggestion
To change this, specify requirements and implement them accordingly in the respective extensions.
This should mostly be fixed within the content_analyzer.js module, unless some other functionality beyond handling the anchor name is required (e.g. in loft).
Assumptions
Rules
CURRENT WORKAROUND
The current implementation has a line added to reset the code counter back to 0 for each file.
The reason is that in osc2 the use of code- anchors is not consistent and, therefore, numbers will jump.
Remove this after osc2 has been released.
The text was updated successfully, but these errors were encountered: