Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svg in -- image:: output is an object instead of an img #2937

Closed
2 tasks done
Popolon opened this issue Oct 17, 2021 · 6 comments
Closed
2 tasks done

svg in -- image:: output is an object instead of an img #2937

Popolon opened this issue Oct 17, 2021 · 6 comments
Labels
bug stale Marked for closure due to inactivity

Comments

@Popolon
Copy link

Popolon commented Oct 17, 2021

  • I have read the Filing Issues and subsequent “How to Get Help” sections of the documentation.
  • I have searched the issues (including closed ones) and believe that this is not a duplicate.
  • OS version and name: Arch Liunx updated
  • Python version: 3.9.7
  • Pelican version: 4.6.0
  • Link to theme: no theme selected
  • Links to plugins: no plugin
  • Link to your site:
  • Link to your source:
  • Link to a Gist with the contents of your settings file:

Issue

when using -- image:: in rst for an animated (or not) SVG like this:

.. image:: /images/Pinguin_v2.svg
   :height: 250
   :width: 250
   :alt: penguin
   :align: right

the output in the formatted html is an object

<object class="align-right" data="/images/Pinguin_v2.svg" style="width: 250px; height: 250px;" type="image/svg+xml">penguin</object>

instead of an image:

<img src="/images/Pinguin_v2.svg"  width="250px" height="250px" alt="penguin">

So the alignment at the right of the text doesn't work with default theme.

@Popolon Popolon added the bug label Oct 17, 2021
@stale
Copy link

stale bot commented Apr 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your participation and understanding.

@stale stale bot added the stale Marked for closure due to inactivity label Apr 28, 2022
@Popolon
Copy link
Author

Popolon commented May 1, 2022

Is there a mean to choose between the 2 modes, as object or as image ?

@stale stale bot removed the stale Marked for closure due to inactivity label May 1, 2022
@avaris
Copy link
Member

avaris commented May 6, 2022

That seems to be the default for HTML4 writer in docutils, and that is the one used in pelican right now. HTML5 support in docutils was not very good (see #2549). If that is improved over time, any contribution regarding upgrading the RST converter would be more than welcome :).

@Popolon
Copy link
Author

Popolon commented May 24, 2022

Thanks for the answer. Strange to see again a SVN repository those days, here are more information about the HTML writer, it could be useful for other people interested by this subject:

Anyway, I didn't read well the answer that's RST converter that need to be adapted.

@stale
Copy link

stale bot commented Aug 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your participation and understanding.

@stale stale bot added the stale Marked for closure due to inactivity label Aug 13, 2022
@justinmayer
Copy link
Member

justinmayer commented Aug 2, 2023

@Popolon: Thank you for the researched links, which perhaps will be useful for anyone who would like to work on this. Related: #3004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale Marked for closure due to inactivity
Projects
None yet
Development

No branches or pull requests

3 participants