Mercurial > dandelion
changeset 480:ed66335d31f9
added test for macros in wikiparser
| author | sheep@ghostwheel |
|---|---|
| date | Sun, 05 Oct 2008 19:30:29 +0200 |
| parents | 3aadd1f08e2e |
| children | e4464e09a2f3 |
| files | dandelion/wikiparser.py |
| diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dandelion/wikiparser.py Sun Oct 05 19:27:39 2008 +0200 +++ b/dandelion/wikiparser.py Sun Oct 05 19:30:29 2008 +0200 @@ -33,8 +33,15 @@ ... "* three", ... ])().render() '<ul><li>one</li><li>two<ul><li>sub</li></ul></li><li>three</li></ul>' + + Macros: + >>> WikiParser([ + ... "<<name text>>", + ... ])().render() + '<p><span class="name">text</span></p>' """ + bullets_pat = ur"^\s*[*]+\s+" bullets_re = re.compile(bullets_pat, re.U) heading_pat = ur"^\s*=+"
