Skip to content

Commit

Permalink
fix: action_item not checked
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdyqin committed Dec 19, 2024
1 parent babec3e commit 444307e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const remarkDefaultElementRules: RemarkElementRules = {
_node.children?.forEach((listItem) => {
const defaultType = options.editor.getType({ key: 'p' });
const todoListType = options.editor.getType({ key: 'action_item' }) ?? defaultType
const listItemType = listItem.checked ? todoListType : defaultType;
const listItemType = typeof listItem.checked !== 'undefined' ? todoListType : defaultType;
if (!listItem.children) {
listItems.push({
children: remarkTransformElementChildren(listItem, options),
Expand Down

0 comments on commit 444307e

Please sign in to comment.