michael-o commented on code in PR #223:
URL: https://github.com/apache/maven-doxia/pull/223#discussion_r1721004509


##########
doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParser.java:
##########
@@ -149,6 +149,7 @@ public class MarkdownParser extends AbstractTextParser 
implements TextMarkup {
         flexmarkOptions.set(HtmlRenderer.HTML_BLOCK_OPEN_TAG_EOL, false);
         flexmarkOptions.set(HtmlRenderer.HTML_BLOCK_CLOSE_TAG_EOL, false);
         flexmarkOptions.set(HtmlRenderer.MAX_TRAILING_BLANK_LINES, -1);
+        flexmarkOptions.set(HtmlRenderer.FENCED_CODE_NO_LANGUAGE_CLASS, 
"nohighlight nocode");

Review Comment:
   Yes and no. Markdown produces always `<pre><code>` while others can 
separate. In the Markdown case a highlighter will also highlight content which 
shall not be highlighted, but only be prefomatted. Both prettify and 
highlight.js will ignore content having these classes.



-- 
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