April-Gras / obsidian-auto-timelines

Simple timeline generator plugin for story tellers using obsidian
MIT License
120 stars 5 forks source link

[BUG] Inline events picking up text from all events under it #134

Closed lingelbachmb closed 7 months ago

lingelbachmb commented 7 months ago

Describe the bug When using inline events within the same note, events after another event are picking up the subsequent event's text

To Reproduce Put something like this in a note: `%%aat-inline-event aat-event-start-date: 54 aat-event-end-date: true aat-render-enabled: true timelines: [inline-events] %% This is the first inline event text.

Same goes with pictures. |180

%%aat-inline-event aat-event-start-date: 76 aat-render-enabled: true aat-event-title: This inline event has a overriden title aat-event-picture: https://images.unsplash.com/photo-1541781774459-bb2af2f05b55 timelines: [inline-events] %%

Second event text`

Then add a render on another note `

inline-events 

`

and it shows the first event with text from event 2, while event 2 just shows event 2. They both show the entire note though on hover.

Expected behavior Event 1 shows all text until it hits another inline event. I am not sure if this worked a different way before, but hovering the event would be ideal to show the location of the vent, instead of the note from the top.

Screenshots image image image

Desktop (please complete the following information):

April-Gras commented 7 months ago

As a currently possible workaround:

Since https://github.com/April-Gras/obsidian-auto-timelines/releases/tag/0.12.2 you can force the body to stop using the end of body tag You can edit that tag in the settings image but by default it's set to %%aat-event-end-of-body%%

lingelbachmb commented 7 months ago

I updated to the latest and adding %%aat-event-end-of-body%% at the end of each block works to force it to stop scanning further for now. Thanks.