agathauy / wikilinks-to-mdlinks-obsidian

An Obsidian md plugin which allows for the conversion of individually selected wikilinks to markdown links, and vice versa.
107 stars 13 forks source link

Enhanced encoding of non-Chinese characters in Markdown links #17

Open No-needto-recall opened 1 year ago

No-needto-recall commented 1 year ago

Hello,

This PR introduces changes to the wikilinks-to-mdlinks plugin. The main purpose of these changes is to improve the encoding of non-Chinese characters in Markdown links.

Changes include:

These changes ensure that non-Chinese characters in Markdown links are properly encoded. This prevents any potential issues that might arise from improperly encoded characters in Markdown links.

I want to note that these changes were made with the help of the chatGPT AI developed by OpenAI. I am a C++ developer and not familiar with JavaScript. I have tested these changes by installing the plugin and modifying the main.js file, and it worked as expected (I will attach the modified main.js file and the actual effect screenshot). However, I have not compiled or thoroughly tested the changes in a development environment.

I apologize for not being able to fully test these changes, and I understand if that creates extra work on your end. I appreciate your understanding and help with testing these changes.

Please let me know if there are any questions or if further changes are needed.

Best Regards, 陈添梁

main.js

before.gif

after.gif