diff --git a/list-editor/index.js b/list-editor/index.js index 6938fc1..964b538 100644 --- a/list-editor/index.js +++ b/list-editor/index.js @@ -431,6 +431,9 @@ function editor(root, inputData, options) { let next = cursor.get() + 1 < store.length() ? store.value(store.currentID(cursor.get() + 1)).indented : current let indent = next > current ? next : current let item = newListItem(indent) + if (currentValue.text.match(/^#\[\[TODO\]\]/)) { + item.text = '#[[TODO]] '; + } cursor.insertBelow(store, item) }