diff --git a/frontend/components/Editor/components/TodoItem.js b/frontend/components/Editor/components/TodoItem.js index 53c38ef4d..0fd1d6528 100644 --- a/frontend/components/Editor/components/TodoItem.js +++ b/frontend/components/Editor/components/TodoItem.js @@ -23,7 +23,7 @@ export default class TodoItem extends Component { return ( - { return { marks: { @@ -63,7 +54,7 @@ const createSchema = () => { }, rules: [ - // ensure first node is a heading + // ensure first node is always a heading { match: (node: Node) => { return node.kind === 'document'; @@ -77,7 +68,7 @@ const createSchema = () => { }, }, - // remove any marks in first heading + // automatically removes any marks in first heading { match: (node: Node) => { return node.kind === 'heading1';