Assigning a class to an external link

4 views
Skip to first unread message

subb

unread,
Oct 9, 2010, 6:40:40 PM10/9/10
to creoleparser
Hi,
I'm trying to add a small icon next to external links, like dokuwiki
(and many others). I've tried creating a custom dialect and passing a
function for the wiki_links_class_func parameter, but it looks like
the parser only calls my function when the link is internal (ex:
[[MyPage]]).

Am I screwed or there is another option?

Thanks

Stephen Day

unread,
Oct 9, 2010, 9:05:32 PM10/9/10
to creoleparser
There isn't an easy way to do this presently. There is a related issue
that I was planning to work on soon:

http://code.google.com/p/creoleparser/issues/detail?id=45

If all that's needed is a common class for all external links,
it would be very easy to implement. If I don't get any feedback to the
contrary, I will be adding that support within a day or so.

Stephen

subb

unread,
Oct 9, 2010, 11:16:43 PM10/9/10
to creoleparser
I've just noticed the issue (should have checked before asking). For
my application, a class for external links would be enough.
Reply all
Reply to author
Forward
0 new messages