diff options
author | rsiddharth <s@ricketyspace.net> | 2018-02-19 05:07:52 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2018-02-19 05:07:52 +0000 |
commit | f5651b545bfe56d53f6d5598fa9c057cdd458f78 (patch) | |
tree | 85864d11a54fd19b404b0f71339d14ad3256edb5 /md_tw.py | |
parent | 7f150f90ff335da6e1dd49010d9a26ff93cff269 (diff) |
md_tw.py: Update TWMarkdown.output_block_quote.
* md_tw.py (TWMarkdown)[output_block_quote]: Update method.
Diffstat (limited to 'md_tw.py')
-rw-r--r-- | md_tw.py | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -340,18 +340,14 @@ class TWMarkdown(mistune.Markdown): self.renderer.tw_set(subsequent_indent=p) def output_block_quote(self): - # Set renderer to prepend '> ' - prefix = self.renderer.tw_get('initial_indent') + '> ' - self.renderer.tw_set(initial_indent=prefix, - subsequent_indent=prefix) + # Add prefix + self._add_prefix('> ') # Render block quote rendered_bq = super(TWMarkdown, self).output_block_quote() # Remove prefix - prefix = self.renderer.tw_get('initial_indent')[:-2] - self.renderer.tw_set(initial_indent=prefix, - subsequent_indent=prefix) + self._remove_prefix(len('> ')) return rendered_bq |