Skip to content

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

Open
@eric-schneider

Description

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"]

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions