Skip to content

Instantly share code, notes, and snippets.

@hattesen
Last active October 13, 2023 13:30
Show Gist options
  • Save hattesen/b087cf1b87b917012fbeed5a193e67c1 to your computer and use it in GitHub Desktop.
Save hattesen/b087cf1b87b917012fbeed5a193e67c1 to your computer and use it in GitHub Desktop.
GitHub MarkDown - Nested Lists

GitHub Web Editor Syntax Hilghlighting Bug in Nested Lists

The nested lists below are entered as per the Markdown formatting syntax in Nested Lists but in the GitHub Web Editor list entries with levels 3 and 6 are colored RED, indicating a syntax error.

Unordered Nested List

This markdown ...

- One
  - Two
    - Three this line is colored RED in GitHub Web Editor.  
      Continuation line also colored RED
      - Four
        - Five
          - Six this line is colored RED in GitHub Web Editor

... is rendered as ...

  • One
    • Two
      • Three this line is colored RED in GitHub Web Editor.
        Continuation line also colored RED
        • Four
          • Five
            • Six this line is colored RED in GitHub Web Editor

... but is syntax highlighed as an error (red color) in the Github Web Editor ...

image

Ordered Nested List

This markdown ...

1. One
   1. Two
      1. Three this line is colored RED in GitHub Web Editor.  
         Continuation line also colored RED
         1. Four
            1. Five
               1. Six this line is colored RED in GitHub Web Editor

... is rendered as ...

  1. One
    1. Two
      1. Three this line is colored RED in GitHub Web Editor.
        Continuation line also colored RED
        1. Four
          1. Five
            1. Six this line is colored RED in GitHub Web Editor

... but is syntax highlighed as an error (red color) in the Github Web Editor ...

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment