
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@4108 fd906abe-77d9-0310-91a1-e0d9ade77398
29 lines
567 B
Text
29 lines
567 B
Text
============================
|
|
Standard Wiki Pre-processors
|
|
============================
|
|
|
|
($Id$)
|
|
|
|
|
|
MediaWiki Formatting
|
|
====================
|
|
|
|
>>> from cybertools.wiki.preproc.mediawiki import preprocess
|
|
|
|
Links
|
|
-----
|
|
|
|
>>> src = '''Some text with [[a link]] and
|
|
... [[link2 | another link]] with separate text.'''
|
|
|
|
>>> preprocess(src)
|
|
'Some text with `a link <a link>`__ and\n`another link <link2>`__ with separate text.'
|
|
|
|
Embedding of Images
|
|
-------------------
|
|
|
|
>>> src = '''[[image:media01.jpg]]'''
|
|
|
|
>>> print preprocess(src)
|
|
.. image:: media01.jpg
|
|
|