I have some markup such as:
Markup('talk', '<include',
'/\\(:talk:\\)/i',
'MarkupTalk');
function MarkupTalk($m) {
return 'Talk page: (:include {$BaseName}-talk:)'
}
but when I use it, it does nothing!
Example text (:talk:) more text
outputs
<div id="wikitext">
<p>Example text Talk page: more text</p>
almost as if the (:include:)
directive is a comment! It seems like (:include:)
doesn't work when defined in other markup.
How can I make this work properly?