Skip to content

Commit

Permalink
fix: fix up directly load data, can't set correct sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
fwx5618177 committed Jan 9, 2024
1 parent a929269 commit 3f4f35a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ export const remarkDefaultElementRules: RemarkElementRules<Value> = {
listItems: TElement[] = [],
indent = 1
) => {
_node.children!.forEach((listItem) => {
_node.children!.forEach((listItem, index) => {
const [paragraph, ...subLists] = listItem.children!;

listItems.push({
type: getPluginType(options.editor, ELEMENT_PARAGRAPH),
listStyleType,
indent,
listStart: index + 1,
children: remarkTransformElementChildren(paragraph, options),
});

Expand Down

0 comments on commit 3f4f35a

Please sign in to comment.