1.1 --- a/moinformat/serialisers/html.py Sat Jul 14 15:36:34 2018 +0200
1.2 +++ b/moinformat/serialisers/html.py Sat Jul 14 16:17:36 2018 +0200
1.3 @@ -109,19 +109,20 @@
1.4
1.5 return "ul", None
1.6
1.7 - def start_list(self, indent, marker):
1.8 + def start_list(self, indent, marker, num):
1.9 tag, style_type = self._get_list_tag(marker)
1.10 style = style_type and ' style="list-style-type: %s"' % escape_attr(style_type) or ""
1.11 - self.out("<%s%s>" % (tag, style))
1.12 + start = style_type and num is not None and ' start="%s"' % escape_attr(num) or ""
1.13 + self.out("<%s%s%s>" % (tag, style, start))
1.14
1.15 - def end_list(self, indent, marker):
1.16 + def end_list(self, indent, marker, num):
1.17 tag, style = self._get_list_tag(marker)
1.18 self.out("</%s>" % tag)
1.19
1.20 - def start_listitem(self, indent, marker, space):
1.21 + def start_listitem(self, indent, marker, space, num):
1.22 self.out("<li>")
1.23
1.24 - def end_listitem(self, indent, marker):
1.25 + def end_listitem(self, indent, marker, space, num):
1.26 self.out("</li>")
1.27
1.28 def start_monospace(self):