[ https://issues.apache.org/jira/browse/DOXIA-696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17707520#comment-17707520 ]
Konrad Windszus commented on DOXIA-696: --------------------------------------- The IDs in the TOC are generated in https://github.com/apache/maven-doxia/blob/b113dc75a5982bb503e0e7c1be5da815744ef166/doxia-core/src/main/java/org/apache/maven/doxia/macro/toc/TocMacro.java#L154 while the anchor link targets are generated by AnchorJS. I think it would rather make sense to generate those link targets (i.e. id attributes) also on the server side for every sectionTitle (inside https://github.com/apache/maven-doxia/blob/b113dc75a5982bb503e0e7c1be5da815744ef166/doxia-core/src/main/java/org/apache/maven/doxia/sink/impl/Xhtml5BaseSink.java#L495). > Inconsistent anchors between toc macro and headers > -------------------------------------------------- > > Key: DOXIA-696 > URL: https://issues.apache.org/jira/browse/DOXIA-696 > Project: Maven Doxia > Issue Type: Bug > Reporter: Slawomir Jaranowski > Priority: Major > Fix For: wontfix-candidate > > > In markdown document add: > {code:java} > <!-- MACRO{toc|fromDepth=2} --> > {code} > Then anchors generated by toc macro looks like: {{#Your_First_Mojo}} > and anchors generated by skin looks like: {{#your-first-plugin}} > - Doxia Site Renderer 2.0.0-M4 > - Fluido Skin 1.11.1 > Tested on Maven main site without more investigate. -- This message was sent by Atlassian Jira (v8.20.10#820010)