Mercurial > moin > 1.9
changeset 5421:eaef92e05011
extension for parser text_creole and text_moin_wiki added.
Use extension .creole for text_creole and .moin for text_moin_wiki.
Attachments are rendered now when viewed.
author | Reimar Bauer <rb.proj AT googlemail DOT com> |
---|---|
date | Mon, 11 Jan 2010 00:37:26 +0100 |
parents | be610b894f10 |
children | 7d0598a55c09 |
files | MoinMoin/parser/text_creole.py MoinMoin/parser/text_moin_wiki.py MoinMoin/wikiutil.py docs/CHANGES |
diffstat | 4 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/parser/text_creole.py Sun Jan 10 23:42:10 2010 +0100 +++ b/MoinMoin/parser/text_creole.py Mon Jan 11 00:37:26 2010 +0100 @@ -37,6 +37,7 @@ MoinMoin current API. """ + extensions = ['.creole'] # Enable caching caching = 1 Dependencies = Dependencies
--- a/MoinMoin/parser/text_moin_wiki.py Sun Jan 10 23:42:10 2010 +0100 +++ b/MoinMoin/parser/text_moin_wiki.py Mon Jan 11 00:37:26 2010 +0100 @@ -32,6 +32,7 @@ Methods named like _*_repl() are responsible to handle the named regex patterns. """ + extensions = ['.moin'] # allow caching caching = 1 Dependencies = Dependencies
--- a/MoinMoin/wikiutil.py Sun Jan 10 23:42:10 2010 +0100 +++ b/MoinMoin/wikiutil.py Mon Jan 11 00:37:26 2010 +0100 @@ -867,6 +867,8 @@ '.flv': 'video/x-flv', '.wmv': 'video/x-ms-wmv', '.swf': 'application/x-shockwave-flash', + '.moin': 'text/moin-wiki', + '.creole': 'text/creole', } # add all mimetype patterns of pygments
--- a/docs/CHANGES Sun Jan 10 23:42:10 2010 +0100 +++ b/docs/CHANGES Mon Jan 11 00:37:26 2010 +0100 @@ -48,8 +48,8 @@ * highlight parser: added missing support for console/bash session * Fixed precedence of parsers: more special parsers now have precedence before moin falls back to using the HighlightParser (syntax highlighting). - * Added extensions to the rst parser (example.rst attachments are rendered - now when viewed). + * Added extensions to the rst, moin and creole parser (example.rst, example.moin and + example.creole attachments are rendered now when viewed). * Fixed MoinMoinBugs/TableOfContentsBrokenForIncludedPages. * Exception raised on calling add_msg() after send_title(), which leads to Internal Server Error on calling several actions (diff, preview) for