Skip to content

Commit

Permalink
feat(ordered-list): add type attribute (#5344)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel authored Aug 9, 2024
1 parent e31673d commit da7b337
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/ordered-list-type-attr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tiptap/extension-ordered-list": minor
---

Support the `type` attribute for ordered lists
4 changes: 4 additions & 0 deletions packages/extension-ordered-list/src/ordered-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ export const OrderedList = Node.create<OrderedListOptions>({
: 1
},
},
type: {
default: null,
parseHTML: element => element.getAttribute('type'),
},
}
},

Expand Down

0 comments on commit da7b337

Please sign in to comment.