obsidian-advanced-slides icon indicating copy to clipboard operation
obsidian-advanced-slides copied to clipboard

[Bug report] <p> around image "absorbs" any further content

Open annargrs opened this issue 3 years ago • 1 comments

Plugin version 1.72 in Obsidian 0.14.6

Expected behavior: a separate <p> element with class "footer" after the image element

Markdown source:

# Title

![[myimage.jpg]]

Image credit: J. Smith <!-- element class="footer" --> 

Current behavior: the footnote text and its class gets "absorbed" into the <p> element containing the image itself, and so styling it separately is impossible.

<h2 id="title">Title</h2>
<p style="line-height: 0" class="footer"><img src="/presentations/img/myimage.jpg" alt=""></p>
Image credit: J. Smith
<!-- -->

Update: this also happens with <ul>. Any paragraph following a list gets "absorbed" into it.

annargrs avatar Apr 20 '22 11:04 annargrs

yeah this is behavior is ugly.. here obsidian and reveal did workarounds on rendering which causes this issue. In the future i have to rewrite the whole image handling. Dont expect a fix in the near future

MSzturc avatar Apr 21 '22 15:04 MSzturc

fixed since 1.17 please retest

MSzturc avatar Aug 30 '22 20:08 MSzturc