Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-19363

Markdown nested lists fail to render

    XMLWordPrintable

Details

    Description

      The Markdown Wiki renderer fails to handle alternating ordered/unordered list types that are standardized by CommonMark. Permalink to markdown-it example. See below for the test example:

      ## Lists
      
      Unordered
      
      + Create a list by starting a line with `+`, `-`, or `*`
      + Sub-lists are made by indenting 2 spaces:
        - Marker character change forces new list start:
          * Ac tristique libero volutpat at
          + Facilisis in pretium nisl aliquet
          - Nulla volutpat aliquam velit
      + Very easy!
      
      Ordered
      
      1. Lorem ipsum dolor sit amet
      2. Consectetur adipiscing elit
      3. Integer molestie lorem at massa
      
      
      1. You can use sequential numbers...
      1. ...or keep all the numbers as `1.`
      
      Start numbering with offset:
      
      57. foo
      1. bar
      
      Alternating lists
      
      1) first level `<ol>`
         * second level `<ul>`
           1) third level `<ol>`
         * second level
      2) first level
         * second level
      ---
      * first level `<ul>`
         1) second level `<ol>`
            * third level `<ul>`
         1) second level
      * first level
         1) second level
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            7e975d58a26f Evan Bovie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: