id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
9157,ValueError: Cannot process flags argument with a compiled pattern (when displaying markdown),peerst,dwclifton,Just installed the extension and when trying it out (with a ticket that contains the example on the MarkdownMacro page I get the following error:\r\n\r\n{{{\r\n\r\nFile "/var/tmp/trac-test/egg-cache/Trac-0.12.2-py2.7.egg-tmp/trac/ticket/templates/ticket_box.html"_ line 77_ in <Expression u'wiki_to_html(context_ ticket.description_ escape_newlines=preserve_newlines)'>\r\n  ${wiki_to_html(context_ ticket.description_ escape_newlines=preserve_newlines)}\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py"_ line 1497_ in format_to_html\r\n  return HtmlFormatter(env_ context_ wikidom).generate(escape_newlines)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py"_ line 1452_ in generate\r\n  escape_newlines)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py"_ line 1201_ in format\r\n  self.handle_code_block(line_ block_start_match)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py"_ line 1091_ in handle_code_block\r\n  processed = self.code_processor.process(code_text)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py"_ line 304_ in process\r\n  text = self.processor(text)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/trac/wiki/formatter.py"_ line 291_ in _macro_processor\r\n  text)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/Markdown/macro.py"_ line 60_ in expand_macro\r\n  return markdown(sub(LINK_ convert_ content))\r\nFile "/usr/local/lib/python2.7/re.py"_ line 151_ in sub\r\n  return _compile(pattern_ flags).sub(repl_ string_ count)\r\nFile "build/bdist.freebsd-8.2-RELEASE-amd64/egg/Markdown/macro.py"_ line 51_ in convert\r\n  I).groups()[0]\r\nFile "/usr/local/lib/python2.7/re.py"_ line 142_ in search\r\n  return _compile(pattern_ flags).search(string)\r\nFile "/usr/local/lib/python2.7/re.py"_ line 237_ in _compile\r\n  raise ValueError('Cannot process flags argument with a compiled pat\r\n\r\nSystem Information:\r\n\r\nUser Agent: Mozilla/5.0 (Macintosh; PPC Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML_ like Gecko) Version/5.0.6 Safari/533.22.3\r\n\r\nTrac	0.12.2\r\nBabel	0.9.6\r\nDocutils	0.8\r\nGenshi	0.6\r\nMercurial	1.9.1\r\nPygments	1.4\r\npysqlite	2.6.0\r\nPython	2.7.2 (default_ Sep 2 2011_ 10:31:59) [GCC 4.2.1 20070719 [FreeBSD]]\r\npytz	2011g\r\nsetuptools	0.6c11\r\nSilverCity	0.9.7\r\nSQLite	3.7.7.1\r\njQuery	1.4.2\r\nEnabled Plugins:\r\n\r\nTracMarkdownMacro	0.11.1	/var/tmp/trac-test/plugins/TracMarkdownMacro-0.11.1-py2.7.egg\r\nTracMercurial	0.12.0.28dev-r10784	/var/tmp/trac-test/plugins/TracMercurial-0.12.0.28dev_r10784-py2.7.egg\r\n\r\n}}}\r\n\r\n,defect,closed,normal,MarkdownMacro,normal,fixed,,hasienda,0.12
