[ 
https://issues.apache.org/jira/browse/DOXIA-488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed DOXIA-488.
--------------------------------
    Resolution: Auto Closed

This issue has been auto closed because it has been inactive for a long period 
of time. If you think this issue still applies, retest your problem with the 
most recent version of Maven and the affected component, reopen and post your 
results.

> Support optional langage for syntax highlighting
> ------------------------------------------------
>
>                 Key: DOXIA-488
>                 URL: https://issues.apache.org/jira/browse/DOXIA-488
>             Project: Maven Doxia
>          Issue Type: Bug
>          Components: Module - Markdown
>    Affects Versions: 1.3
>            Reporter: Charles Salmon
>            Priority: Trivial
>         Attachments: DOXIA-488.patch
>
>
> pegdown supports the way to specify the langage for a code block:
> {noformat}
> ~~~langage
> code
> ~~~
> {noformat}
> Following the resolution of DOXIA-484 (pegdown dependency update), we should 
> make sure the overrided {code:java}public void visit( VerbatimNode node ) 
> {code} of the {code:java}MarkdownToDoxiaHtmlSerializer{code} includes the 
> support of langage option, ie:
> {code:java}
>      /**
>       * {@inheritDoc}
>       */
>      @Override
>      public void visit( VerbatimNode node )
>      {
>         printer.println().print("<div class=\"source\"><pre>");
>         if (!StringUtils.isEmpty(node.getType())) {
>             printAttribute("class", node.getType());
>         }
>         printer.print(">");
>         ...
>      }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to