MCPcopy Create free account
hub / github.com/chhoumann/MetaEdit / parseInlineContent

Method parseInlineContent

src/parser.ts:226–239  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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);

Callers 4

parseInlineFieldsMethod · 0.95
parseInlineFunction · 0.80
parser.test.tsFile · 0.80

Calls 2

parseLineFieldsMethod · 0.95

Tested by 1

parseInlineFunction · 0.64