aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-02-08 20:04:15 +0000
committerMichael Williamson <mike@zwobble.org>2015-02-08 20:04:15 +0000
commit3090caa64cb8625000209f70e9ca63730c95f81c (patch)
tree0069fac014f9188d4965a7ee598bc4032cb861f2 /tests
parent68acf659253a2ac7bd5f9e2bd5d8c7ecd665a7af (diff)
Handle heading levels 1 to 6 in markdown writer
Diffstat (limited to 'tests')
-rw-r--r--tests/writers/markdown_tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/writers/markdown_tests.py b/tests/writers/markdown_tests.py
index f334dfa..e1cdf77 100644
--- a/tests/writers/markdown_tests.py
+++ b/tests/writers/markdown_tests.py
@@ -28,6 +28,15 @@ def h1_elements_are_converted_to_heading_with_leading_hash():
writer.text("Hello");
writer.end("h1");
assert_equal("# Hello\n\n", writer.as_string())
+
+
+@istest
+def h6_elements_are_converted_to_heading_with_six_leading_hashes():
+ writer = _create_writer()
+ writer.start("h6");
+ writer.text("Hello");
+ writer.end("h6");
+ assert_equal("###### Hello\n\n", writer.as_string())