javalent / initiative-tracker

TTRPG Initiative Tracker for Obsidian.md
GNU General Public License v3.0
144 stars 30 forks source link

Inline Encounters only render in Reading mode and not Live Preview, but block encounters render correctly in both #250

Open thepancreator opened 6 months ago

thepancreator commented 6 months ago

Check for existing bug reports before submitting.

Expected Behavior

I expected the inline encounter to render the functional buttons in Live Preview mode as it does in Reading mode, meaning

`encounter: 2: Ochre Jelly`

Would show up as image while still in Live Preview mode.

Current behaviour

I like using the inline encounters when I'm making notes on locations instead of blocks to keep things condensed, but I'm usually in Live Preview mode while working/DMing/adding notes. I tried writing an inline encounter, but it didn't show either the "Start Encounter" or "Add to Encounter" button. If I write out the encounter block image it renders in Live Preview mode as expected, but the inline encounter renders as the single line above the block, as just encounter: 2: Ochre Jelly

Reproduction

The only step to produce this bug was to attempt writing an inline encounter block in Live Preview mode, where it does not render the "Start Encounter" button or the "Add to Encounter" button for interaction. If I switch to Reading mode, it renders as expected.

Which Operating Systems are you using?

Obsidian Version Check

Obsidian v1.5.3 and Installer v1.4.13

Plugin Version

12.5.0

Confirmation

Possible solution

No response

trev33b commented 4 months ago

I'm seeing this as well. I was working through the examples on https://plugins.javalent.com/it/encounters/inline and couldn't figure out why nothing was working. It wasn't until I saw this bug that I realized I needed to be in Reading mode.

If this isn't intended to work in Live Preview mode or won't for a long time, I recommend updating the documentation so that people aren't confused about why it's not working.