[merge] patch, fix argument handling for wiki-macros and some refactoring
|Reported by:||tonib||Owned by:||Jonas Borgström|
This patch a couple of things.
- You couldnt pass the characters <,>,&," in the arguments for macros. Since the it was made util.escape on the line. I have added a funtion util.unescape that is done on the arguments before passing to the macro.
- You couldnt have a ) in the argument. I changed the regex for the macro so that you can use this. I also changed it to non-greedy so that you can still write two macros on a line.
- Added so that one can write inline html or syntax hihglightning. Example [[html(<B>test</B>)]] or [[python(class test))]]. The idea is to use the macro syntax for this.
- Started refactoring to take out from the formatter class that other wikimacros need to create wiki syntax. This is done so that it should be easy to do another wiki syntax processer that supports all special trac syntax.
I have added tests for the argument handling and inline macros.
The patch is continuation on what I did on for 779 and 780, so the patch contains those fixes aswell.
Change History (13)
comment:1 by , 16 years ago
|Summary:||[merge] patch, fix argument handling for wiki-macros and some refatcoring → [merge] patch, fix argument handling for wiki-macros and some refactoring|