From 403cc58b542354a130d1f2c94a559fd0ea2f16fa Mon Sep 17 00:00:00 2001 From: sblondon Date: Wed, 30 Mar 2016 20:09:26 +0200 Subject: Fix lazy ordered list example in documentation The documentation is not accurate when lazy_ol=False parameter is called. The example shows the 'start' attribute to the first
  • tag. However, the attribute is in the
      tag: >>> import markdown >>> s = """ ... 4. Apples ... 5. Oranges ... 6. Pears""" >>> markdown.markdown(s, lazy_ol=False) u'
        \n
      1. Apples
      2. \n
      3. Oranges
      4. \n
      5. Pears
      6. \n
      ' The behaviour of the library is the correct one (https://developer.mozilla.org/fr/docs/Web/HTML/Element/ol), so the documentation need to be fixed, not the library. --- docs/reference.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/reference.txt b/docs/reference.txt index ac5c724..7268cc6 100644 --- a/docs/reference.txt +++ b/docs/reference.txt @@ -247,8 +247,8 @@ The following options are available on the `markdown.markdown` function: If `lazy_ol` is set to `False`, then markdown will output the following HTML: -
        -
      1. Apples
      2. +
          +
        1. Apples
        2. Oranges
        3. Pears
        -- cgit v1.2.3