logo
search
SharePoint Document Issues

Fix SharePoint Markdown Web Part Not Supporting Relative Image URLs

Bushra ParveenBushra Parveen Sep 27, 2026 869 views

Question details

Users are unable to display images in the SharePoint Markdown Web Part when using relative file paths.

How to Fix SharePoint Markdown Web Part Not Supporting Relative Image URLs
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Adding images stored in the Site Assets folder to a SharePoint page via the Markdown Web Part.
Observed behavior
Images fail to load and display as broken links when referenced with a relative path (e.g., siteassets/sitepages/image.png), despite having correct folder permissions. The images only render when the full absolute URL is used.
Before you start

Verify that your image file is fully uploaded to the SharePoint Site Assets folder and that you have basic editing permissions for the SharePoint page. If you plan to submit a support ticket, you will need assistance from your Microsoft 365 administrator.

Solution 1Recommended

Use Absolute URLs for Markdown Images

Since the Markdown Web Part currently struggles with relative path resolution, replacing relative paths with the complete SharePoint image URL ensures images render correctly.

This is the fastest and most reliable workaround for rendering images in the Markdown Web Part without waiting for backend platform fixes.

1
Locate the image

Navigate to the Site Assets folder (or whichever document library you use) where your image is currently stored.

2
Copy the full URL

Click the three dots (ellipses) next to the image file, select 'Copy link', and ensure you are copying the direct, full URL to the file rather than a shortened sharing link.

3
Edit the SharePoint page

Go to the SharePoint page where your Markdown Web Part is located and click the 'Edit' button in the top right corner.

4
Update the Markdown syntax

Click the 'Edit web part' pencil icon on the Markdown Web Part. Change the image path to use the copied full URL (e.g., ![Image Alt Text](https://yourtenant.sharepoint.com/sites/yoursite/SiteAssets/image.png)).

5
Publish changes

Click 'Republish' to apply the changes and verify that the image now displays properly to all site visitors.

Use Absolute URLs for Markdown Images
Permissions Maintained: Using the absolute URL maintains your standard SharePoint site permissions, ensuring that only authorized users can view the image.
Free Microsoft Office alternative

Looking for a seamless Office experience? Try WPS Office

While SharePoint web part issues can interrupt your workflow, WPS Office provides a lightweight, highly compatible alternative for managing and editing your daily documents, spreadsheets, and presentations without the complexities of web-based environments.

  1. 1. Download and Install: Get WPS Office from the official website and install it on your device in minutes.
  2. 2. Open Your Documents: Easily open your existing .docx, .xlsx, and .pptx files directly in WPS Office with zero formatting loss.
  3. 3. Edit and Collaborate: Use powerful built-in tools to edit your documents offline or collaborate using cloud integrations.
Fully compatible with Microsoft Word, Excel, and PowerPoint formatsLightweight installation with fast loading timesFree to use with a familiar, highly intuitive user interfaceSeamless local and cloud document management
microsoft office alternative - wps office

Frequently Asked Questions

What is a relative URL in SharePoint?

A relative URL specifies the path to a file in relation to the current site or directory structure (e.g., /SiteAssets/image.png), omitting the main tenant domain name (https://yourtenant.sharepoint.com). This is usually preferred for site migrations but isn't always supported by specific web parts.

Why did relative URLs stop working in the Markdown Web Part?

Microsoft frequently rolls out updates to SharePoint Online. Occasionally, these backend updates can disrupt how specific components, like the Markdown Web Part, parse and resolve local site paths, leading to broken images.

Can I use relative links in other SharePoint web parts?

Yes, native features like the Image Web Part, Quick Links, or the Text Web Part are natively designed to handle relative paths effectively and rarely experience the same path-resolution issues found in the Markdown Web Part.

What is a HAR log and why does Microsoft need it?

A HAR (HTTP Archive) log is a recording of your web browser's interaction with the site. Microsoft support requires it to see exactly where the network request for the relative image fails on the backend servers.