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

Fix encoding of inline content #1186

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Pistahh
Copy link

@Pistahh Pistahh commented Dec 16, 2024

Inline content with the file containing e.g. a : cannot be displayed as the file name is set as the img src, and the browser treats the part before the : as the protocol, instead of as a file name.

This change encodes the file name so : becomes %3A, fixing the issue.

Fixes #1182.

Inline content with the file containing e.g. a `:` cannot be displayed
as the file name is set as the img src, and the browser treats the part
before the : as the protocol, instead of as a file name.

This change encodes the file name so `:` becomes `%3A`, fixing the
issue.

Fixes silverbulletmd#1182.
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 this pull request may close these issues.

Images with colons in their name not displayed
1 participant