Trees Indices Help
Trac
Package trac :: Package wiki :: Module api :: Class IWikiSyntaxProvider

Class IWikiSyntaxProvider

source code

 object --+ 
 | 
core.Interface --+
 |
 IWikiSyntaxProvider

Instance Methods
get_wiki_syntax()
Return an iterable that provides additional wiki syntax. source code
get_link_resolvers()
Return an iterable over (namespace, formatter) tuples. source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

get_wiki_syntax()

source code

Return an iterable that provides additional wiki syntax.

Additional wiki syntax correspond to a pair of (regexp, cb), the regexp for the additional syntax and the callback cb which will be called if there's a match. That function is of the form cb(formatter, ns, match).

get_link_resolvers()

source code
Return an iterable over (namespace, formatter) tuples.
Each formatter should be a function of the form:
{{{#!python
def format(formatter, ns, target, label, fullmatch=None):
 pass
}}}
and should return some HTML fragment. The `label` is already
HTML escaped, whereas the `target` is not. The `fullmatch` argument
is optional, and is bound to the regexp match object for the link.

Trees Indices Help
Trac

AltStyle によって変換されたページ (->オリジナル) /