seanlowe/obsidian-timelines

No body in timeline event created via frontmatter

Closed this issue · 3 comments

when I generate the frontmatter event with ctrl + P it gives a lot of properties, one of which is description. This seems to do nothing, and there's no other property that seems like it would equate to a body of text.

When I do inspect elements I can see that there is a p element, which looks like it should have been populated with something?

image
image

I think this may be the issue?

noteCard.createEl( 'p', { text: eventAtDate.innerText.trim() })

innerText is only set if you create an event the HTML route rather than the frontmatter route

export const getEventData = (

the getEventData function calls retrieveEventValue in order to acquire the various properties which differ in arrangement between HTMLElement and FrontMatterCache. But it doesn't store the event body, this should be an oversight rather than a technical or design limitation, right? The frontmatter event generates with a description property that seemingly does nothing.

I manually edited the plugin in a few spots within my plugin folder and it works now

pull request submitted: #50