Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(editor): preserve nested ordered lists through readonly render (#1512)

Mackf2ba087f748c
diff --git a/packages/views/editor/extensions/index.ts b/packages/views/editor/extensions/index.ts
index e8c1f025d3..cc82594e36 100644
--- a/packages/views/editor/extensions/index.ts
+++ b/packages/views/editor/extensions/index.ts
@@ -119,7 +119,8 @@ export function createEditorExtensions(
TableCell,
BlockMathExtension,
InlineMathExtension,
- Markdown,
+ // 3-space indent so nested ordered lists survive CommonMark in ReadonlyContent.
+ Markdown.configure({ indentation: { style: "space", size: 3 } }),
FileCardExtension,
BaseMentionExtension.configure({
HTMLAttributes: { class: "mention" },