Skip to content

Commit

Permalink
Fix #963; Ensure inline metadata is properly extracted from cards
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed May 26, 2024
1 parent 867e919 commit fb33fbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parsers/formats/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ export function listItemToItemData(stateManager: StateManager, md: string, item:
}
);

itemData.title = preprocessTitle(stateManager, dedentNewLines(executeDeletion(title)));

const firstLineEnd = itemData.title.indexOf('\n');
const inlineFields = extractInlineFields(itemData.title, true);

Expand Down Expand Up @@ -218,7 +220,6 @@ export function listItemToItemData(stateManager: StateManager, md: string, item:
}
}

itemData.title = preprocessTitle(stateManager, dedentNewLines(executeDeletion(title)));
itemData.metadata.tags?.sort(defaultSort);

return itemData;
Expand Down

0 comments on commit fb33fbf

Please sign in to comment.