yorkxin / copy-as-markdown

A browser extension to copy tabs and links as Markdown
MIT License
530 stars 81 forks source link

feat: decode URLs when they're encoded #99

Closed stevenxxiu closed 2 years ago

stevenxxiu commented 2 years ago

Summary

Decode encoded URL characters. This is very convenient for unicode URLs, especially say URLs including Chinese characters:

They look rather ugly otherwise in their encoded form.

Tests

yorkxin commented 2 years ago

I am not sure if I would agree with this, because encoding an URL is important for web servers to recognize the URL correctly. Some tricky cases include Emoji characters and special chars such as percentage mark. I myself am a native Chinese speaker, but I am not convinced to write URL in non-ASCII characters.

yorkxin commented 2 years ago

Here is a reference Q&A: https://stackoverflow.com/questions/13824669/how-do-you-write-a-link-containing-a-closing-bracket-in-markdown-syntax