You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Richard Körber (JIRA)" <ji...@apache.org> on 2018/02/25 14:34:03 UTC
[jira] [Commented] (DOXIA-571) Markdown does not support syntax
highlighting any more
[ https://issues.apache.org/jira/browse/DOXIA-571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16376085#comment-16376085 ]
Richard Körber commented on DOXIA-571:
--------------------------------------
Digging a little deeper into this issue, I have found out that the actual syntax highlighting is done by the maven-fluido-skin. It uses prettify.js, which prettifies all HTML blocks having a "prettyprint" class (e.g. <pre class="prettyprint">).
Flexmark uses a "source" class for code blocks instead (e.g. <pre class="source">).
Now I'm not sure if this is a doxia-module-markdown or maven-fluido-skin bug.
> Markdown does not support syntax highlighting any more
> ------------------------------------------------------
>
> Key: DOXIA-571
> URL: https://issues.apache.org/jira/browse/DOXIA-571
> Project: Maven Doxia
> Issue Type: Bug
> Components: Module - Markdown
> Affects Versions: 1.8
> Reporter: Richard Körber
> Priority: Minor
>
> Starting with version 1.8, doxia-module-markdown changed from Pegdown to Flexmark.
> However it seems that Flexmark does not support syntax highlighting.
> Example:
> {noformat}
> ```java
> System.out.println("Hello World!");
> ```
> {noformat}
> doxia-module-markdown < 1.8 applied Java syntax highlighting here. doxia-module-markdown 1.8 does not. As doxia-module-markdown is used mostly for technical documentation in maven, I think this is a major regression.
> Possible workaround: Use doxia-module-markdown 1.7.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)