[ 
https://issues.apache.org/jira/browse/DOXIA-521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17257797#comment-17257797
 ] 

Bertrand Martin commented on DOXIA-521:
---------------------------------------

[~michael-o] This issue can be closed along with DOXIA-616.

Things have been changed to satisfy both requests, as fenced code blocks are 
now rendered as:
{code:html}
<div class="source"><pre><code class="language-java">// Fenced Code Block 1
System.out.println(&quot;Hello, Fenced Code Block!&quot;);
</code></pre></div>
{code}

i.e. {{<pre><code>}} inside a {{<div class="source">}}. So the skins don't need 
to change their behavior to handle fenced code blocks, and popular highlighters 
will just work out-of-the-box.


> Markdown: Allow using the standard "<pre><code>" for code blocks
> ----------------------------------------------------------------
>
>                 Key: DOXIA-521
>                 URL: https://issues.apache.org/jira/browse/DOXIA-521
>             Project: Maven Doxia
>          Issue Type: Improvement
>          Components: Module - Markdown
>    Affects Versions: 1.6, 1.9
>            Reporter: Santiago M. Mola
>            Priority: Major
>
> Pegdown, as well as other Markdown parsers, translates code blocks to 
> <pre><code>. This is the standard as per the Markdown specifications and both 
> themes and tools (e.g. http://highlightjs.org/) rely on this syntax.
> However, the doxia markdown module overrides this behaviour and uses "<div 
> class="source"><pre>. It would be nice to revert the default behaviour to the 
> standard. If there are use cases for such an alternative syntax, it could be 
> provided as an option.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to