markdown-textwrap

text wrap markdown documents
git clone git://git.ricketyspace.net/markdown-textwrap.git
Log | Files | Refs

commit 6bc1aeb370ab33bbfa2dbece6d85fc22c198fdcd
parent 1c94dfabe07400c5b6991f2f4a3a46340a9cc3bd
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue,  2 Jan 2018 00:29:15 +0000

md_tw: Update `TWBlockLexer.__init__`.

* md_tw.py
(__init__): Remove default_rules.
* tests/test_md_tw.py
(test_default_rules_contents): Remove method.

Diffstat:
md_tw.py | 1-
tests/test_md_tw.py | 2--
2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/md_tw.py b/md_tw.py @@ -29,7 +29,6 @@ class TWBlockLexer(mistune.BlockLexer): def __init__(self, rules=None, **kwargs): super(TWBlockLexer, self).__init__(rules, **kwargs) - self.default_rules = ['paragraph', 'text'] class TWInlineLexer(mistune.InlineLexer): diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py @@ -41,8 +41,6 @@ class TestTWBlockLexer(object): self.bl = TWBlockLexer() - def test_default_rules_contents(self): - assert_equal(self.bl.default_rules, ['paragraph', 'text']) def teardown(self):