Ionaru / Ionaru/easy-markdown-editor

Parsing of nested lists

Open
#423 1 comment 0 reactions 0 assignees View on GitHub
Question
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

Hi,
I am using the classes added by CodeMirror to style lists in the edit mode.
CodeMirror adds a `cm-formatting-list-ul` / `cm-formatting-list-ol` class to each list marker (`+-*`).
This makes it very convenient to already style these list items in edit mode. However I noticed that these classes are only applied on the outermost level. E.g. in the example below, the `*` before `sub list item 1` won't get the `cm-formatting-list-ul` class. If anyone could point me into any direction on how to get EasyMDE or CodeMirror to also parse these nested lists, that would be great!
````
- list item 1
- list item 2
* sub list item 1
* sub list item 2
````

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.