Here's an idea for a small cosmetic improvement (related to #39): Make tag URLs with whitespace or other non-alphanumeric characters more easily human-readable. This could be done by normalizing them the same way Markdown normalizes heading anchor links.
Markdown anchors
For example, if you have a Markdown heading like:
# Title: subtitle (parenthetical)
The anchor link generated for that will look like:
I can't find the exact rules in the Commonmark spec, but it looks like it just replaces spaces with hyphens, and strips out any other special characters. I am guessing it does this mainly to make it a valid HTML attribute (<a id="...">), but has the side effect of making a more readable link.
Tag URLs
We could do the same for tag URLs, so they always appear without any urlencoded characters, like:
Here's an idea for a small cosmetic improvement (related to #39): Make tag URLs with whitespace or other non-alphanumeric characters more easily human-readable. This could be done by normalizing them the same way Markdown normalizes heading anchor links.
Markdown anchors
For example, if you have a Markdown heading like:
The anchor link generated for that will look like:
Instead of:
I can't find the exact rules in the Commonmark spec, but it looks like it just replaces spaces with hyphens, and strips out any other special characters. I am guessing it does this mainly to make it a valid HTML attribute (
<a id="...">
), but has the side effect of making a more readable link.Tag URLs
We could do the same for tag URLs, so they always appear without any urlencoded characters, like:
I could submit a PR for that if you'd like.