Closed (works as designed)
Project:
Textile
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2005 at 17:34 UTC
Updated:
29 Nov 2005 at 20:50 UTC
if i want to link to an article with Textile
i type:
"test":foo
but this will become <a href="http://foo/">test</a>
but it should and would be better to become <a href="/foo">test</a> as you can see at http://textism.com/tools/textile/index.html
so it is much easier to link inside the own website
Please restore the default Textile bahavour!
Thanks
Tobias Maier
Comments
Comment #1
Tobias Maier commentedi found two solutions by now:
edit Textile.php
search for
comment it out
means:
editing class MTLikeTextile in Textile.php
goto function "function format_url"
look for (line 3370):
if (preg_match('/^(imdb|google|dict|amazon)(:(.+))?$/x', $url, $matches)) {replace it with
if (preg_match('/^(imdb|google|dict|amazon|intern)(:(.+))?$/x', $url, $matches)) {add this inside the switch (line 3374) which comes after the code mentioned above:
Now you can call intern pages with
"my link":intern:use_firefox_because_its_betterwhat i don't understand is what
does...
(you can find it in textile.module, line 514)
Comment #2
jhriggs commentedAs this code is designed to behave the same as Brad Choate's MT code, I am hesitant to change this. I realize that this behavior is different from that described on textism, but it should be consistent with the MT implementation. This same link can be achieved by doing "test":./foo or "test":/foo instead.