Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Auto Closed
-
1.3
-
None
-
None
Description
pegdown supports the way to specify the langage for a code block:
~~~langage code ~~~
Following the resolution of DOXIA-484 (pegdown dependency update), we should make sure the overrided
public void visit( VerbatimNode node )
of the
MarkdownToDoxiaHtmlSerializer
includes the support of langage option, ie:
/** * {@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(">"); ... }