This is probably contentious, but I would say that [[link title]] should accept a relative URL (ie. http:/about). At the moment, it doesn't (links have to be http://site/path) but it's easily fixed.

Change all occurrences of:

$wgUrlProtocols = 'http:\/\/|https:\/\/|ftp:\/\/|irc:\/\/|gopher:\/\/|news:|mailto:';

in mw_parser.inc with:

$wgUrlProtocols = 'http:\/|https:\/|ftp:\/|irc:\/|gopher:\/|news:|mailto:';

(although I'm not sure if IRC links can ever have relative paths?)

I've attached a .patch to do this on version 4.7.0.

CommentFileSizeAuthor
mw_parser.patch.txt710 bytescoofercat

Comments

sorenp’s picture

Status: Active » Closed (won't fix)

My intention is that Liquid should provide the Wiki infrastructure to Drupal rather than specific markups. For this reason, the development of the Liquid Filter module will focus on providing infrastructure for Liquid Wiki Filters rather than supporting any specific markups. As soon as the basic infrastructure has been set up, the Media Wiki Markup support in Liquid will be dropped. A new project will be started to take care of the Media Wiki Liquid Filter, but I will not take any responsibility for the development. Until then, the module will be included for testing purposes, but no active development will be done except for things connected to the Liquid Filter Interface.

I know there are other approaches running on Drupal when it comes to Wiki Markup Filters. My suggestion is that you take a look at those or, if you have the time, start a Liquid MedaWiki Markup Filter project.

// Soren