blockquote and macros

This commit is contained in:
Elan Ruusamäe 2012-06-20 01:18:09 +02:00
parent dcb2be4d85
commit fc6886b4b4
2 changed files with 18 additions and 1 deletions

View file

@ -82,6 +82,13 @@ Wiki``Name
Wiki''''''Name
Wiki``Name
= Blockquote =
{{{
This is indented
Even more
}}}
This is indented
Even more
= Bullet list =
{{{
@ -151,3 +158,11 @@ sixth line!
----------
-------------------------------------------- (not thicker than 10)
= Macros =
{{{
[[Anchor(anchorname)]]
'''[[PageCount]]''' pages
}}}
[[Anchor(anchorname)]]
'''[[PageCount]]''' pages

View file

@ -124,6 +124,7 @@ class Formatter(FormatterBase):
return ['', '\n'][on]
def listitem(self, on, **kw):
# somewhy blockquote uses "listitem" call
return [(' ' * self.list_depth * 2) + self.list_type + ' ', '\n'][not on]
def code(self, on, **kw):
@ -172,7 +173,8 @@ class Formatter(FormatterBase):
return ['|', '|'][not on]
def anchordef(self, id):
return '<anchor id="%s"/>' % id
# not supported
return ''
def anchorlink(self, on, name='', **kw):
id = kw.get('id',None)