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

Wrong rendered images when using <img> in less #970

Open
jcubic opened this issue Sep 23, 2024 · 1 comment
Open

Wrong rendered images when using <img> in less #970

jcubic opened this issue Sep 23, 2024 · 1 comment
Labels
Bug documentation resolved if issue is resolved, it will be open until merge with master

Comments

@jcubic
Copy link
Owner

jcubic commented Sep 23, 2024

Issue summary

When you use XML <img> tag with less, it doesn't split the image into slices and it shows the scrollbar.

Expected behavior

It should work the same as with terminal formatting.

Steps to reproduce

See demo https://codepen.io/jcubic/pen/poMoyMg

Browser and OS

N/A

Additional notes

The problem is an empty object for attributes that is the output of the XML formatter

@jcubic jcubic added the Bug label Sep 23, 2024
@jcubic
Copy link
Owner Author

jcubic commented Sep 23, 2024

There were two issues:

  1. Wrong regex that test the image terminal formatting
  2. There is a need to use option { formatting: true }

The second need to be documented

jcubic added a commit that referenced this issue Sep 23, 2024
@jcubic jcubic added resolved if issue is resolved, it will be open until merge with master documentation labels Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug documentation resolved if issue is resolved, it will be open until merge with master
Projects
None yet
Development

No branches or pull requests

1 participant