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

Standalone Code macro is not rendered properly in Markdown syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 8.5
    • 8.4.3
    • markdown/1.1, markdown/1.2
    • None
    • xwiki

    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
          CodeBlockTest_A.png
          16 kB
        2. CodeBlockTest_B.png
          CodeBlockTest_B.png
          19 kB
        3. CodeBlockTest_C.png
          CodeBlockTest_C.png
          16 kB
        4. CodeBlockTest_D.png
          CodeBlockTest_D.png
          19 kB
        5. CodeBlockTest_E.png
          CodeBlockTest_E.png
          19 kB

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: