Commit bdc799f
authored
fix: support YAML list format for frontmatter tags (#29)
The tag search parser previously only supported bracket format
tags: [tag1, tag2] but failed to parse the standard YAML list
format with tags on separate lines (tags:\n - tag1). This caused
"No tags found in frontmatter" errors for notes using list format.
Updated parser to handle both formats:
- Bracket format: tags: [tag1, tag2, tag3]
- YAML list format: tags:\n - tag1\n - tag2
Parser now enters list mode when tags: line is not in bracket
format and processes subsequent lines starting with - until
hitting a non-list item or end of frontmatter section.1 parent d538088 commit bdc799f
1 file changed
+30
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | | - | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
184 | 203 | | |
185 | 204 | | |
186 | 205 | | |
| |||
189 | 208 | | |
190 | 209 | | |
191 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
192 | 214 | | |
193 | | - | |
194 | 215 | | |
195 | 216 | | |
196 | 217 | | |
| |||
0 commit comments