Developer portal markdown image size

AE 40 Reputation points
2024-04-05T12:18:45.19+00:00

Trying to include an image in an API description OAS file to be shown in Developer Portal. Using markdown as in Azure DevOps includes the image but the size is not taken into account;

![Image alt text](/content/myImage.png =500x250)

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,768 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 21,321 Reputation points
    2024-04-22T13:22:25.74+00:00

    @AE Thanks for reaching out. In standard Markdown, you cannot directly set the size of an image, meaning that this limitation comes from markdown, not developer portal.

    To correctly set height and width for an image you need to use the below html code.

    <img src="<source>" width="500" height="250">

    do let me know incase of further queries, I would be happy to assist you.

    Please accept as Yes if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.

    0 comments No comments