restlessminded / dokuwiki-plugin-svgEmbed

A dokuwiki plugin that allows the use of the standard media syntax, but SVG files are placed with the <embed> tag, not the <img> tag.
GNU General Public License v2.0
1 stars 2 forks source link

SVG not in line with text #12

Open annievoss opened 3 years ago

annievoss commented 3 years ago

when embedding, the image is never inline with the text before and after. The source code is always:

<p>
text before
</p>
<span style="display:block;width:16px;height:16px;margin:auto"><object id="[...]" type="image/svg+xml" data="[...] ;media=[...]" class="mediacenter" alt="svg image" style="width:100%"><embed type="image/svg+xml" src="[...];media=t[...]" class="mediacenter" alt="" style="width:100%" /></object></span><br />
<p>
text after
</p>

whereas with a png

<p>
text before <img src="[...]" class="media" alt="png image" /> text after
</p>
restlessminded commented 3 years ago

Yep, this is true. I'll need to take a look. I need to fix something for #9 too, and in a way that are almost related, so one rock two birds, right?