SimpleChatTCRV:Markdown:OrderedLists - allow only number markers

This commit is contained in:
hanishkvc 2025-11-27 15:15:52 +05:30
parent 6358a2083d
commit e9546168ae
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ export class MarkDown {
process_list(line) {
let emptyTracker = this.empty_tracker("list", line)
// spaces followed by - or + or * followed by a space and actual list item
let matchList = line.match(/^([ ]*)([-+*]|[a-zA-Z0-9]\.)[ ](.*)$/);
let matchList = line.match(/^([ ]*)([-+*]|[0-9]+\.)[ ](.*)$/);
if (matchList != null) {
let listLvl = 0
let curOffset = matchList[1].length