MohamedRejeb / compose-rich-editor

A Rich text editor library for both Jetpack Compose and Compose Multiplatform, fully customizable, supports HTML and Markdown.
https://mohamedrejeb.github.io/compose-rich-editor/
Apache License 2.0
961 stars 60 forks source link

When listIndent is set to 0, the number of the ordered list will disappear #296

Open jinyu0712 opened 2 months ago

jinyu0712 commented 2 months ago

When listIndent is set to 0 in RichTextEditor, the number of the ordered list will disappear. ` Column {

val state = rememberRichTextState()
state.config.listIndent = 0

Button(onClick = {
    if (state.isOrderedList) {
        state.removeOrderedList()
    } else {
        state.toggleOrderedList()
    }
}) {
    Text(text = "ol", color = Color.White)
}

RichTextEditor(state = state)

} `

MohamedRejeb commented 1 month ago

Hi, Thanks for reporting this issue, I will check it.