aboutsummaryrefslogtreecommitdiffstats
path: root/tests/options
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-04-29 01:35:29 -0400
committerWaylan Limberg <waylan@gmail.com>2011-04-29 01:35:29 -0400
commitef7b35ab7ddc8ba174e27f063208dbe38ed02e27 (patch)
treedfbf158cdf63acb9f4de7b8ceaad2580ed5ad927 /tests/options
parentefa244322af59350056ffe3b93f7d4728d5ce61e (diff)
downloadmarkdown-ef7b35ab7ddc8ba174e27f063208dbe38ed02e27.tar.gz
markdown-ef7b35ab7ddc8ba174e27f063208dbe38ed02e27.tar.bz2
markdown-ef7b35ab7ddc8ba174e27f063208dbe38ed02e27.zip
Made lazy ordered lists a settable option. The previous behavior (on) is the default.
Diffstat (limited to 'tests/options')
-rw-r--r--tests/options/lazy_ol_off.html18
-rw-r--r--tests/options/lazy_ol_off.txt17
-rw-r--r--tests/options/test.cfg2
3 files changed, 37 insertions, 0 deletions
diff --git a/tests/options/lazy_ol_off.html b/tests/options/lazy_ol_off.html
new file mode 100644
index 0000000..bff1970
--- /dev/null
+++ b/tests/options/lazy_ol_off.html
@@ -0,0 +1,18 @@
+<p>A numbered list from daringfireball:</p>
+<ol start="3">
+<li>Bird</li>
+<li>McHale</li>
+<li>Parish</li>
+</ol>
+<p>Again:</p>
+<ol start="3">
+<li>Bird</li>
+<li>McHale</li>
+<li>Parish</li>
+</ol>
+<p>Now starting with 1:</p>
+<ol>
+<li>Bird</li>
+<li>McHale</li>
+<li>Parish</li>
+</ol> \ No newline at end of file
diff --git a/tests/options/lazy_ol_off.txt b/tests/options/lazy_ol_off.txt
new file mode 100644
index 0000000..611f3a6
--- /dev/null
+++ b/tests/options/lazy_ol_off.txt
@@ -0,0 +1,17 @@
+A numbered list from daringfireball:
+
+3. Bird
+1. McHale
+8. Parish
+
+Again:
+
+3. Bird
+1. McHale
+8. Parish
+
+Now starting with 1:
+
+1. Bird
+1. McHale
+8. Parish
diff --git a/tests/options/test.cfg b/tests/options/test.cfg
new file mode 100644
index 0000000..d0d3368
--- /dev/null
+++ b/tests/options/test.cfg
@@ -0,0 +1,2 @@
+[lazy_ol_off]
+lazy_ol = False