[ 
https://issues.apache.org/jira/browse/DOXIA-696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17708749#comment-17708749
 ] 

Michael Osipov commented on DOXIA-696:
--------------------------------------

[~sjaranowski], this is something I have thought of Doxia-wise, but ultimately 
discarded that idea for the following reasons:
* Doxia sink events for heading and anchors are disjoint, no way to associate 
them (except for silent auto IDs) which will create duplicate ids
* Not all markup languages provide a joint ID with the markup itself like HTML 
does.
* How to solve this in the parsers to make two events out of it? Hard

For those reasons I intentionally kept sectionTitle AND anchor as two separate 
blocks.

> 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
>            Assignee: Konrad Windszus
>            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)

Reply via email to