From 66f9baf013672dcacf6ec3f3fecdea3f71ed42c9 Mon Sep 17 00:00:00 2001 From: hkdobrev Date: Sat, 20 Jul 2013 09:53:17 +0300 Subject: [PATCH] More tests for atx headings Headings with the atx style support closing. I have added more tests for all heading sizes, closing and closing different number of #s. --- tests/tests/atx_heading.html | 14 +++++++++++++- tests/tests/atx_heading.md | 26 +++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/tests/tests/atx_heading.html b/tests/tests/atx_heading.html index 7d8118e..0540854 100644 --- a/tests/tests/atx_heading.html +++ b/tests/tests/atx_heading.html @@ -1,2 +1,14 @@

This is an h1

-

This is an h2

\ No newline at end of file +

This is an h2

+

This is an h3

+

This is an h4

+
This is an h5
+
This is an h6
+

This is a closed h1

+

This is a closed h2

+

This is a closed h3

+

This is a closed h4

+
This is a closed h5
+
This is a closed h6
+

This is an irregularly closed h1

+

This is an irregularly closed h4

\ No newline at end of file diff --git a/tests/tests/atx_heading.md b/tests/tests/atx_heading.md index cede358..4f6e49b 100644 --- a/tests/tests/atx_heading.md +++ b/tests/tests/atx_heading.md @@ -1,3 +1,27 @@ # This is an h1 -## This is an h2 \ No newline at end of file +## This is an h2 + +### This is an h3 + +#### This is an h4 + +##### This is an h5 + +###### This is an h6 + +# This is a closed h1 # + +## This is a closed h2 ## + +### This is a closed h3 ### + +#### This is a closed h4 #### + +##### This is a closed h5 ##### + +###### This is a closed h6 ###### + +# This is an irregularly closed h1 ### + +#### This is an irregularly closed h4 ## \ No newline at end of file