diff options
| -rw-r--r-- | tests/data/footnote_parses_images_00-expected.md | 11 | ||||
| -rw-r--r-- | tests/data/footnote_parses_images_00.md | 7 | ||||
| -rw-r--r-- | tests/test_mdl_style.py | 42 | 
3 files changed, 60 insertions, 0 deletions
| diff --git a/tests/data/footnote_parses_images_00-expected.md b/tests/data/footnote_parses_images_00-expected.md new file mode 100644 index 0000000..538de35 --- /dev/null +++ b/tests/data/footnote_parses_images_00-expected.md @@ -0,0 +1,11 @@ +![IMG 00][0] + +[0]: /path/to/img-00.jpg + +![IMG 01][1] + +[1]: /path/to/img-01.jpg (IMG 01 Title) + +![IMG 02][2] + +[2]: url/to/image-02 (IMG 02 Title) diff --git a/tests/data/footnote_parses_images_00.md b/tests/data/footnote_parses_images_00.md new file mode 100644 index 0000000..7fab86d --- /dev/null +++ b/tests/data/footnote_parses_images_00.md @@ -0,0 +1,7 @@ + + + + +![IMG 02][img02-id] + +[img02-id]: url/to/image-02  "IMG 02 Title" diff --git a/tests/test_mdl_style.py b/tests/test_mdl_style.py index 3171dc7..d7421d1 100644 --- a/tests/test_mdl_style.py +++ b/tests/test_mdl_style.py @@ -96,10 +96,52 @@ class TestLSRendererFN(object):      def setup(self):          self.md = LSMarkdown(link_style='footnote') +    def test_autolink_00(self): +        d = _get_data('autolink_00.md') +        d_expected = _get_data('autolink_00-expected.md') +        assert_equals(self.md(d), d_expected) +      def test_link_inline_to_footnote_style_conversion_00(self):          d = _get_data('footnote_link_style_00.md')          expected_result = _get_data('footnote_link_style_00-expected.md')          assert_equal(self.md(d), expected_result) +    def test_renderer_parses_images(self): +        d = _get_data('footnote_parses_images_00.md') +        expected_result = _get_data('footnote_parses_images_00-expected.md') +        assert_equal(self.md(d), expected_result) + +    def test_renderer_does_not_parse_link_breaks(self): +        d = _get_data('does_not_parse_link_breaks_00.md') +        assert_equal(self.md(d), d) + +    def test_renderer_does_not_parse_headers(self): +        d = _get_data('does_not_parse_headers_00.md') +        assert_equal(self.md(d), d) + +    def test_renderer_does_not_parse_blockquotes(self): +        d = _get_data('does_not_parse_blockquotes_00.md') +        assert_equal(self.md(d), d) + +    def test_renderer_does_not_parse_lists(self): +        d = _get_data('does_not_parse_lists_00.md') +        assert_equal(self.md(d), d) + +    def test_renderer_does_not_parse_codeblocks(self): +        d = _get_data('does_not_parse_codeblocks_00.md') +        assert_equal(self.md(d), d) + +    def test_renderer_does_not_parse_hrules(self): +        d = _get_data('does_not_parse_hrules_00.md') +        assert_equal(self.md(d), d) + +    def test_renderer_does_not_parse_emphasis(self): +        d = _get_data('does_not_parse_emphasis_00.md') +        assert_equal(self.md(d), d) + +    def test_renderer_does_not_parse_code(self): +        d = _get_data('does_not_parse_code_00.md') +        assert_equal(self.md(d), d) +      def teardown(self):          pass | 
