Skip to content

Commit f069aba

Browse files
committed
fix: lower alpha and lower roman categorized as UL instead of OL
1 parent b6059b3 commit f069aba

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/pluggableWidgets/rich-text-web/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1313
### Fixed
1414

1515
- We fixed an issue where the editor kept adding infinite empty lines at the end by limiting it to only 1 empty line.
16+
- We fixed an issue where lower alpha and lower roman list style converted into unordered list.
1617

1718
### Changed
1819

packages/pluggableWidgets/rich-text-web/src/utils/MxQuill.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default class MxQuill extends Quill {
119119
* https://github.com/slab/quill/blob/main/packages/quill/src/core/editor.ts
120120
*/
121121
function getListType(type: string | undefined): [tag: string, attr: string] {
122-
const tag = type === "ordered" ? "ol" : "ul";
122+
const tag = type === "ordered" || type === "lower-alpha" || type === "lower-roman" ? "ol" : "ul";
123123
switch (type) {
124124
case "checked":
125125
return [tag, ' data-list="checked"'];

0 commit comments

Comments
 (0)