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

The svg macro has different height/width scaling behavior than the standard image macro #177

Open
eric-schneider opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@eric-schneider
Copy link
Contributor

The standard image macro processes width and height attributes according to specific scaling rules. The svg macro doesn't appear to follow these same rules.

image

Test syntax:

== `image:`

image:ROOT:logo.svg[width="100"]

image:ROOT:logo.svg[height="100"]

image:ROOT:logo.svg[width="100",height="100"]

== `svg:`

svg:ROOT:logo.svg[width="100"]

svg:ROOT:logo.svg[height="100"]

svg:ROOT:logo.svg[width="100",height="100"]

== `image::`

image::ROOT:logo.svg[width="100",align="left"]

image::ROOT:logo.svg[height="100",align="left"]

image::ROOT:logo.svg[width="100",height="100",align="left"]

== `svg::`

svg::ROOT:logo.svg[width="100",align="left"]

svg::ROOT:logo.svg[height="100",align="left"]

svg::ROOT:logo.svg[width="100",height="100",align="left"]
@eric-schneider eric-schneider added the bug Something isn't working label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant