return '</pre>'
return ''
- def _hilight_repl(self, word):
- return '<strong class="hilight">' + word + '</strong>'
+ def _hi_repl(self, word):
+ if word == 'FIXME':
+ cl = 'error'
+ elif word == 'DONE':
+ cl = 'success'
+ elif word == 'TODO':
+ cl = 'notice'
+ return '<strong class="highlight ' + cl + '">' + word + '</strong>'
def _var_repl(self, word):
if word == '{{' and not self.in_var:
+ r"|(?P<tit>\={2,6})"
+ r"|(?P<rule>^-{3,})"
+ r"|(?P<ent>[<>&])"
- + r"|(?P<hilight>\b(FIXME|TODO)\b)"
+ + r"|(?P<hi>\b(FIXME|TODO|DONE)\b)"
# Links
+ r"|(?P<img>\b[a-zA-Z0-9_-]+\.(png|gif|jpg|jpeg|bmp))"