Show More
@@ -127,7 +127,7 b' def render_reflink(tag_name, value, opti' | |||||
127 |
|
127 | |||
128 |
|
128 | |||
129 | def bbcode_extended(markup): |
|
129 | def bbcode_extended(markup): | |
130 |
parser = bbcode.Parser( |
|
130 | parser = bbcode.Parser() | |
131 | parser.add_formatter('post', render_reflink, strip=True) |
|
131 | parser.add_formatter('post', render_reflink, strip=True) | |
132 | parser.add_simple_formatter('quote', |
|
132 | parser.add_simple_formatter('quote', | |
133 | u'<span class="multiquote">%(value)s</span>') |
|
133 | u'<span class="multiquote">%(value)s</span>') | |
@@ -139,7 +139,7 b' def bbcode_extended(markup):' | |||||
139 | u'<span class="strikethrough">%(value)s</span>') |
|
139 | u'<span class="strikethrough">%(value)s</span>') | |
140 | parser.add_simple_formatter('code', |
|
140 | parser.add_simple_formatter('code', | |
141 | u'<pre><code>%(value)s</pre></code>') |
|
141 | u'<pre><code>%(value)s</pre></code>') | |
142 |
return |
|
142 | return parser.format(markup) | |
143 |
|
143 | |||
144 | formatters = [ |
|
144 | formatters = [ | |
145 | QuotePattern, |
|
145 | QuotePattern, |
General Comments 0
You need to be logged in to leave comments.
Login now