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

Code blocks are not being properly rendered on nested lists

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • Product - Markdown
    • None

    Description

      Issue Summary

      When adding a code block in a nest list, It is not being properly rendered;

      Steps to Reproduce

      1. Edit a .md file;
      2. Start a list;
      3. Add a second level of indentation to create a nested list;
      4. Add a code block with multiple lines to the nested list point;
        Example:
        * List
        	* Indented list
        	* Topic with code
        	```
        	  - code
        	  - goes
        	  - here
        	```
        * List 2
        

      Expected Results

      The code block should be properly rendered with all the lines;

      Actual Results

      The code block is not properly rendered;

      • List
        • Indented list
        • Topic with code ```
          • code
          • goes
          • here ```
      • List 2

      Workaround

      Code blocks can be properly rendered inside first level lists:

      * 1s topic
      * 2nd topic with code
      ```
        - code 
        - goes 
        - here
      ```
      * 3rd topic
      

      Will be rendered as:

      • 1s topic
      • 2nd topic with code
        - code
        - goes
        - here
        
      • 3rd topic

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              0298b2749e0b Mateus T
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: