kwin commented on code in PR #126: URL: https://github.com/apache/maven-doxia-sitetools/pull/126#discussion_r1442152573
########## doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java: ########## @@ -320,9 +337,13 @@ public void renderDocument( String resource = doc.getAbsolutePath(); Parser parser = doxia.getParser(docRenderingContext.getParserId()); - // DOXIASITETOOLS-146 don't render comments from source markup - parser.setEmitComments(false); - + ParserConfiguration parserConfiguration = docRenderingContext.getParserConfiguration(); + if (parserConfiguration != null) { + parserConfiguration.accept(parser); + } else { + // DOXIASITETOOLS-146 don't render comments from source markup + parser.setEmitComments(false); Review Comment: TODO: once https://github.com/apache/maven-doxia/pull/180 is merged, the default for emitting anchors should be changed as well. -- 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