Teradata / covalent

Teradata UI Platform built on Angular Material
https://teradata.github.io/covalent/
MIT License
2.23k stars 358 forks source link

Markdown component doesn't handle relative urls, only absolute #2179

Closed JulieMarie closed 2 months ago

JulieMarie commented 2 months ago

Describe the bug When creating url for svg images in the markdown component, only absolute paths work, relative path do not. For using IPH files offline, the component needs to handle relative paths as well as absolute paths.

To Reproduce Steps to reproduce the behavior:

  1. Change IPH to host file for offline use
  2. Try to open a md file that calls out an image
  3. Note the error in the console

Expected behavior User expects to see help files displayed properly whether they are online or offline

Screenshots md file without image that works:

Screenshot 2024-07-09 at 9 27 24 AM

md file with image that doesn't work: Screenshot 2024-07-09 at 9 27 34 AM

Screenshot 2024-07-09 at 9 27 56 AM

Desktop (please complete the following information):

Additional context N/A