Commit ccfea7b
committed
Create todo notes with checkbox markdown, strip checkboxes from preview
- Pass initial markdown to create_note backend so todo notes are stored
with "- [ ] " from creation, making them match the todo filter query
immediately (no animation delay)
- Strip checkbox markers ([ ], [x]) from note card preview text
- Handle checkbox markers with or without trailing content1 parent 760cabd commit ccfea7b
4 files changed
Lines changed: 20 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
244 | 245 | | |
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
253 | 259 | | |
254 | 260 | | |
255 | 261 | | |
| |||
1275 | 1281 | | |
1276 | 1282 | | |
1277 | 1283 | | |
1278 | | - | |
1279 | | - | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
1280 | 1288 | | |
1281 | 1289 | | |
1282 | 1290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 317 | + | |
321 | 318 | | |
322 | 319 | | |
323 | 320 | | |
| |||
681 | 678 | | |
682 | 679 | | |
683 | 680 | | |
| 681 | + | |
684 | 682 | | |
685 | 683 | | |
686 | 684 | | |
| |||
0 commit comments