Uploaded image for project: 'Markdown Syntax'
  1. Markdown Syntax
  2. MARKDOWN-41

Standalone Code macro is not rendered properly in Markdown syntax

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.4.3
    • Fix Version/s: 8.5
    • Component/s: Markdown 1.1, Markdown 1.2
    • Labels:
      None
    • Environment:
      xwiki
    • Similar issues:

      Description

      When using markdown 1.1 with CKE editor 1.17 on xwiki 9.7 codeblocks are not handles correctly.

      When using either three backtics ``` or 4 spaces it only lasts for on "edit". (A) If a page with a codeblock is reopen (B) for edit the formatting is changes (C), such that whitespaces before the ``` is removed.
      This causes the the formatting to change alot when rendered (D) and if reopened a second time (E) 2 of the thre backtics are removed.

      If the plain text editor is used, there is no changes to the formatting which i why I have a hunch that it is related to the CKE editor.
      Using 4 spaces to indicate a codeblock behaves similar.

      Please take a hold of me if there is anything else you need information about.
      /Johannes

        Attachments

        1. CodeBlockTest_A.png
          16 kB
          Johannes Lund
        2. CodeBlockTest_B.png
          19 kB
          Johannes Lund
        3. CodeBlockTest_C.png
          16 kB
          Johannes Lund
        4. CodeBlockTest_D.png
          19 kB
          Johannes Lund
        5. CodeBlockTest_E.png
          19 kB
          Johannes Lund

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              johanneslund Johannes Lund
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: