Developer portal markdown image size

AE 60 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.
2,447 questions
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 29,261 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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.