aidenlx / obsidian-icon-shortcodes

Obsidian Plugin: Insert emoji and custom icons with shortcodes
MIT License
138 stars 11 forks source link

Another Conflict with Inline Dataview Fields in Reading Mode #54

Open mkotowski opened 2 years ago

mkotowski commented 2 years ago

The issue is related to https://github.com/aidenlx/obsidian-icon-shortcodes/issues/41.

Both the Dataview’s (tag:: ) and [tag:: ] notations (with the current Obsidian + Icon Shortcodes plugin) do not render correctly at least in some contexts.

One case I discovered, looks like this:

# Rendering bug showcase
- :luc_moon: [sleep-duration:: 5h51m]  [sleep-start:: 00:46]  [sleep-end:: 06:37]
- :luc_moon: [sleep-duration:: 5h51m]  [sleep-start:: 00:46]  [sleep-end:: 06:37]
- :luc_moon: [sleep-duration:: 5h51m]  [sleep-start:: 00:46]  [sleep-end:: 06:37]

# Rendering bug showcase 2
- :luc_moon: (sleep-duration:: 5h51m)  (sleep-start:: 00:46)  [sleep-end:: 06:37]
- :luc_moon: (sleep-duration:: 5h51m)  [sleep-start:: 00:46]  (sleep-end:: 06:37)
- :luc_moon: [sleep-duration:: 5h51m]  [sleep-start:: 00:46]  [sleep-end:: 06:37]

# Rendering bug showcase 3
- :luc_moon: (sleep-duration:: 5h51m)  (sleep-start:: 00:46)  [sleep-end:: 06:37]
- :luc_moon: (sleep-duration:: 5h51m)  (sleep-start:: 00:46)  (sleep-end:: 06:37)
- :luc_moon: [sleep-duration:: 5h51m]  [sleep-start:: 00:46]  [sleep-end:: 06:37]

dataview_shortcodes_bug

It seems that the 2 first instances after a heading are not rendered in the preview mode, while working in the live preview.

NothingWorksToday commented 1 year ago

Also see https://github.com/aidenlx/obsidian-icon-shortcodes/issues/41#issuecomment-1355296614