Add new element style 'enumeration', used for items in ordered lists

This commit is contained in:
Christian Muehlhaeuser
2019-12-05 10:05:15 +01:00
parent 1e195cc3de
commit 82d6db7c7d
2 changed files with 25 additions and 3 deletions
+3
View File
@@ -11,6 +11,7 @@ const (
BlockQuote
List
Item
Enumeration
Paragraph
Heading
HorizontalRule
@@ -90,6 +91,8 @@ func keyToType(key string) (StyleType, error) {
return List, nil
case "item":
return Item, nil
case "enumeration":
return Enumeration, nil
case "paragraph":
return Paragraph, nil
case "heading":