obsidian-initiative-tracker icon indicating copy to clipboard operation
obsidian-initiative-tracker copied to clipboard

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

Open thepancreator opened this issue 1 year ago • 1 comments

Check for existing bug reports before submitting.

  • [X] I searched for existing Bug Reports and found no similar reports.

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?

  • [ ] Android
  • [ ] iPhone/iPad
  • [ ] Linux
  • [ ] macOS
  • [X] Windows

Obsidian Version Check

Obsidian v1.5.3 and Installer v1.4.13

Plugin Version

12.5.0

Confirmation

  • [X] I have disabled all other plugins and the issue still persists.

Possible solution

No response

thepancreator avatar Feb 19 '24 20:02 thepancreator

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.

trev33b avatar May 03 '24 21:05 trev33b