Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
JulieMarie opened this issue Jul 9, 2024 · 0 comments · Fixed by #2185
Closed

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

JulieMarie opened this issue Jul 9, 2024 · 0 comments · Fixed by #2185

Comments

@JulieMarie
Copy link
Collaborator

JulieMarie commented Jul 9, 2024

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):

  • OS: macOS
  • Browser No browser, running Electron app
  • Version N/A

Additional context
N/A

@JulieMarie JulieMarie linked a pull request Jul 12, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant