Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-44227

Markdown code is not rendered and it's not inserted

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Summary

      The Markup macro fails to render and insert an unordered markdown.

      Steps to Reproduce

      1. Edit a page in Confluence.
      2. Click on the + icon in the tool bar and select the Markup macro.
      3. Insert the following markdown from the Atlassian's Markdown syntax guide.
        * Item 1
        * Item 2
        * Item 3
            * Item 3a
            * Item 3b
            * Item 3c
        
      4. Click on Insert

      Expected Results

      The markdown code is rendered and inserted without issues.

      Actual Results

      • The following message is thrown in the GUI:
        Wiki markup conversion errors
        
        error : Internal Server Error
        
      • The following is stored in the log:
        2016-10-05 11:02:40,350 ERROR [http-nio-8090-exec-2] [common.error.jersey.ThrowableExceptionMapper] toResponse Uncaught exception thrown by REST service: null
         -- referer: http://quicksilver:8090/confluence/pages/editpage.action?pageId=6914167 | url: /confluence/rest/tinymce/1/markdownxhtmlconverter | traceId: 06a248db120e64b1 | userName: admin
        java.lang.NullPointerException
        	at com.sangupta.nutz.Parser.parseList(Parser.java:448)
        	at com.sangupta.nutz.Parser.parseLine(Parser.java:244)
        	at com.sangupta.nutz.Parser.readLines(Parser.java:192)
        	at com.sangupta.nutz.Parser.parse(Parser.java:137)
        

      Notes

      It doesn't happen using wiki markup.

      Workaround

      • Use the Wiki Markup with the following syntax:
        * Item 1
        * Item 2
        * Item 3
        ** Item 3a
        ** Item 3b
        ** Item 3c
        

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gviana Guilherme V. (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: