Uploaded image for project: 'Maven Doxia'
  1. Maven Doxia
  2. DOXIA-521

Markdown: Allow using the standard "<pre><code>" for code blocks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6, 1.9
    • 1.10
    • Module - Markdown
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              smolav Santiago M. Mola
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: