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(...)`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to