Code blocks are not being properly rendered on nested lists

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Low
    • Component/s: Product - Markdown
    • None
    • 1
    • Severity 3 - Minor

      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

            Assignee:
            Unassigned
            Reporter:
            Mateus T
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: