Uploaded image for project: 'Maven Skins'
  1. Maven Skins
  2. MSKINS-258

Markdown: Fenced code without info string incorrectly formatted by Fluido skin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • fluido-2.0.0
    • fluido-2.0.1
    • None
    • None

    Description

      Due to the Flexmark option FENCED_CODE_NO_LANGUAGE_CLASS being set to nohighlight nocode in https://github.com/apache/maven-doxia/blob/master/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParser.java#L152 every fenced code without an info string is emitted by Doxia as

      <pre><code class="nohighlight nocode">
      ...
      </code></pre>
      

      This is converted by Fluido operations to

      <pre class="prettyprint linenums"><code class="nohighlight nocode">
      ...
      </code></pre>
      

      which in turn is incorrectly formatted by Fluido 2.0, printing only a line number for the first line.

      Example in https://maven.apache.org/developers/release/maven-core-release.html, with its markdown at https://github.com/apache/maven-site/blob/6be27cb3b9c703772fb6837f27ec8547d840639b/content/markdown/developers/release/maven-core-release.md?plain=1#L26-L43

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: