Prettify wiki URLs (wincent.dev, 7a865f9)

Adopt MediaWiki convention of converting spaces to underscores in article titles. This means that we get cleaner-looking URLs in the browser's address/location bar (eg "foo_bar" instead of "foo%20bar") at the cost of having to disallow underscores in article titles.

I've added a corresponding validation. I prefer explicitly disallowing the underscore rather than accepting it and therefore permitting the ambiguity wherein you can create two articles, "foo bar" and "foo_bar", and you can only conveniently link to one of them.

I think this is an acceptable tradeoff because attractive URLs are important and space is exceedingly common in article titles whereas underscore is not.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Basic tag display (wincent.dev, 61b8b6f)
Allow option overrides at intialization time (wikitext, f2658b6) →

All snippets