Skip to content

Commit 59a53b5

Browse files
committed
fix: Numbered list for nexus
1 parent 563b7c7 commit 59a53b5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

markdown_to_bbcode.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,7 @@ def parse_list_items(lines):
132132
while list_stack and indent < current_indent:
133133
parent_list, parent_indent, parent_type = list_stack.pop()
134134
if parent_type == 'ordered':
135-
if bbcode_type == 'nexus':
136-
parent_list.append(f"[olist]\n" + "\n".join(current_list) + "\n[/olist]")
137-
else:
138-
parent_list.append(f"[list=1]\n" + "\n".join(current_list) + "\n[/list]")
135+
parent_list.append(f"[list=1]\n" + "\n".join(current_list) + "\n[/list]")
139136
else:
140137
parent_list.append(f"[list]\n" + "\n".join(current_list) + "\n[/list]")
141138
current_list = parent_list

0 commit comments

Comments
 (0)