(markdown = "")
| 174 | } |
| 175 | |
| 176 | function taskLineIndexes(markdown = "") { |
| 177 | const indexes = []; |
| 178 | String(markdown || "").split("\n").forEach((line, index) => { |
| 179 | if (/^\s*(?:[-*+]|\d+[.)])\s+\[[ xX]\](?:\s+|$)/.test(line)) indexes.push(index); |
| 180 | }); |
| 181 | return indexes; |
| 182 | } |
| 183 | |
| 184 | async function callEditor(action, payload = {}) { |
| 185 | const explicitContextId = String(payload.ctxid || payload.context_id || "").trim(); |
no test coverage detected