markdown-link-style

switch between inline and footnote link style in markdown documents.
git clone git://git.ricketyspace.net/markdown-link-style.git
Log | Files | Refs

commit 198fdb6707f4bb8249da4ca1bf6b2bc65a3b1095
parent 4e645f0a298fa061899eafd10722534beb305189
Author: rsiddharth <s@ricketyspace.net>
Date:   Wed, 22 Feb 2017 03:53:20 +0000

tests: Update `test_mdl_style.TestLSRendererIL` class.

* tests/data/does_not_parse_code_00.md: Add file.
* tests/data/does_not_parse_emphasis_00.md: Add file.
* tests/test_mdl_style.py
(TestLSRendererIL.test_renderer_does_not_parse_emphasis)
(TestLSRendererIL.test_renderer_does_not_parse_code): Add methods.

Diffstat:
tests/data/does_not_parse_code_00.md | 11+++++++++++
tests/data/does_not_parse_emphasis_00.md | 15+++++++++++++++
tests/test_mdl_style.py | 8++++++++
3 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/tests/data/does_not_parse_code_00.md b/tests/data/does_not_parse_code_00.md @@ -0,0 +1,11 @@ +Use the `printf()` function. + +``There is a literal backtick (`) here.`` + +A single backtick in a code span: `` ` `` + +A backtick-delimited string in a code span: `` `foo` `` + +Please don't use any `<blink>` tags. + +`&#8212;` is the decimal-encoded equivalent of `&mdash;`. diff --git a/tests/data/does_not_parse_emphasis_00.md b/tests/data/does_not_parse_emphasis_00.md @@ -0,0 +1,15 @@ +Curabitur consequat nibh eget lobortis congue. Vestibulum sem orci, +dignissim sit amet porta a, consectetur vel enim. Etiam laoreet +pharetra ipsum, *sed lobortis* urna maximus a. + +Quisque _tortor mi_, sagittis quis finibus vel, porta nec velit. Donec +luctus tristique hendrerit. + +Ut vestibulum nisl **sit amet** turpis aliquet blandit a sit amet +massa. + +__Integer in massa__ non lacus eleifend dignissim. Integer aliquam +vehicula orci, sed auctor nulla lacinia eu. + +Pell*entes*que quis venenatis est. Morbi porttitor lorem sed lacus +mollis efficitur. diff --git a/tests/test_mdl_style.py b/tests/test_mdl_style.py @@ -76,6 +76,14 @@ class TestLSRendererIL(object): 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