* Extract inline `key:: value` fields from raw note content. * * Mirrors Dataview's two-mode model: bracketed fields (`[k:: v]` / `(k:: v)`) * take precedence over a single "full-line" field, and a line yields one or * the other - never both. Keys are returned clean (without lead
(content: string)
| 224 | * `progress (%)` survive a read/write cycle. |
| 225 | */ |
| 226 | public parseInlineContent(content: string): Property[] { |
| 227 | const properties: Property[] = []; |
| 228 | |
| 229 | for (const line of this.walkInlineContentLines(content)) { |
| 230 | if (!line.readable) continue; |
| 231 | if (!line.text.includes("::")) continue; |
| 232 | |
| 233 | for (const field of this.parseLineFields(line.text)) { |
| 234 | properties.push({key: field.key, content: field.value, type: MetaType.Dataview}); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | return properties; |
| 239 | } |
| 240 | |
| 241 | private parseFrontmatterContent(content: string): unknown | null { |
| 242 | const frontmatterInfo = this.getFrontmatterInfo(content); |