Skip to content

Markdown syntax highlighting for ordered and unordered lists only handles 2 spaces and 2 levels #739

@mdpenguin

Description

@mdpenguin

Issue

  • Bullet or numbers only get highlighted on columns 1 and 3.
  • Anything from column 9 on-wards gets highlighted like code.
  • It doesn't seem to matter whether spaces are set to 2 or 4 or any other number.

Replication

Add following to Xed to see issue:

# 2 Spaces
Text
- Bullet
  - Bullet
    - Bullet
      - Bullet
1. Number
  1. Number
    1. Number
      1. Number
# 4 Spaces
Text
- Bullet
    - Bullet
        - Bullet
            - Bullet
1. Number
    1. Number
        1. Number
            1. Number

Screenshot

Replication using Xed theme:
Image

Environment

OS: Linux Mint 22.3
DE: Cinnamon 6.6.7
Xed Version: 3.8.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions