WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Headless Tiptap: Ordered List numbering differs from Simple UI (@tiptap/extension-ordered-list) #396

@ParhamZare

Description

@ParhamZare

When using @tiptap/extension-ordered-list in headless mode, the ordered list numbering does not behave the same as in the Simple UI demo.
In Simple UI, nested ordered lists use different numbering styles (decimal → lower-alpha → lower-roman), but in headless mode, all levels render as decimals.

Steps to Reproduce:

Initialize a headless Tiptap editor with @tiptap/extension-ordered-list.

Create a nested ordered list with at least 3 levels.

Compare the rendering with the Tiptap Simple UI demo.

Expected Behavior:

1st level list → decimal numbers (1, 2, 3...)

2nd level list → lower-alpha letters (a, b, c...)

3rd level list → lower-roman numerals (i, ii, iii...)

Actual Behavior:

All levels render as decimal numbers (1, 2, 3...).

Temporary Solution (CSS fix):

/* Top level numbers */
.tiptap-editor ol {
  list-style-type: decimal !important;
}

/* Second level uses letters */
.tiptap-editor ol ol {
  list-style-type: lower-alpha !important;
}

/* Third level uses roman numerals */
.tiptap-editor ol ol ol {
  list-style-type: lower-roman !important;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions