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


##########
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:
   > Well it is, as you pointed out, but only implicitly via `prettify`.
   
   Correct. `nocode` for prettify and `nohighlight` for highlight.js. I don't 
see a portable way to solve this with `<code>` and with Markdown there is not 
otherway unless we hook into the generator of Flexmark. I don't know whether 
that would be wise.



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