Skip to content

Image shortcodes width functionality isn't working #9

@cjosephson

Description

@cjosephson

On the capital.md page, the width property of images seems to be ignored. For example,

{{< figure src="/img/house.jpg" width="100" >}}

produces an image of arbitrary width. The width specifier works within rawhtml though:

{{< rawhtml >}}
<div style="text-align:center">
<img  src="/img/house.jpg" style="display: inline-block; vertical-align:middle" width="444">
</div>
{{< /rawhtml >}}

I found this resource (source code) seeming to suggest that the top option should work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions