[ https://issues.apache.org/jira/browse/DOXIA-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17797286#comment-17797286 ]
ASF GitHub Bot commented on DOXIA-710: -------------------------------------- kwin commented on code in PR #180: URL: https://github.com/apache/maven-doxia/pull/180#discussion_r1428394870 ########## doxia-core/src/main/java/org/apache/maven/doxia/parser/Parser.java: ########## @@ -83,4 +85,34 @@ public interface Parser { * @return <code>true</code> (default value) if comment Doxia events are emitted */ boolean isEmitComments(); + + /** + * Registers a given {@link SinkWrapperFactory} with the parser used in subsequent calls of {@code parse(...)} + * @param factory the factory to create the sink wrapper + * @since 2.0.0 + */ + void registerSinkWrapperFactory(SinkWrapperFactory factory); + + /** + * + * @return all sink wrapper factories in the correct order (both registered automatically and manually) + * @since 2.0.0 + */ + Collection<SinkWrapperFactory> getSinkWrapperFactories(); + + /** + * Determines whether to automatically generate anchors for each section found by {@link IndexingSink} or not. + * By default no anchors are generated. + * + * @param emitAnchors {@code true} to emit anchors otherwise {@code false} (the default) + * @since 2.0.0 + */ + void setEmitAnchors(boolean emitAnchors); Review Comment: Maybe `setEmitAnchorsForIndexEntries(...)`? > Inconsistent anchors between toc macro and headers > -------------------------------------------------- > > Key: DOXIA-710 > URL: https://issues.apache.org/jira/browse/DOXIA-710 > Project: Maven Doxia > Issue Type: Bug > Reporter: Slawomir Jaranowski > Assignee: Konrad Windszus > Priority: Critical > > 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)