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

Option "Auto escape image URL when insert" does not work with TextBundle files #6263

Open
jmbeck15 opened this issue Jan 25, 2025 · 0 comments

Comments

@jmbeck15
Copy link

jmbeck15 commented Jan 25, 2025

Describe the bug
The option Image > Preferred Image Syntax > Auto escape image URL when insert does not change the URL.

This option does work well when using Markdown.

To Reproduce
Steps to reproduce the behavior:

  1. Ensure the option Image > Preferred Image Syntax > Auto escape image URL when insert is enabled in settings.
  2. Create a TextBundle file and open it with Typora. The "convert to TextBundle" option under Image > "When insert.." works just fine.
  3. Drag and drop an image from your computer that has at least one space in the filename. The image is imported and shows up just fine in Typora.
  4. Take a look at the image path that was added to specify the file path. Notice that the spaces were not replaced with %20 strings.
    If the strings are fixed in the source to use %20 characters in the path, the image will show up in other TextBundle viewers (in this case, I'm using DEVONthink Pro).

Expected behavior
The image code ![name](url) should use %20 in the url to refer to spaces when the option Image > Preferred Image Syntax > Auto escape image URL when insert is enabled.

Desktop (please complete the following information):

  • OS: macOS 15.1.1 (24B91)

Typora Version
Version 1.10.5-dev (7350)

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

No branches or pull requests

1 participant