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:
The addition of the encodeNonChinese function, which encodes all non-Chinese characters in a string, and should resolve issue #13.
The modification of the toggleLink function to use encodeNonChinese for encoding non-Chinese characters in Markdown links.
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.
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:
encodeNonChinese
function, which encodes all non-Chinese characters in a string, and should resolve issue #13.toggleLink
function to useencodeNonChinese
for encoding non-Chinese characters in Markdown links.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