aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-06-13 09:23:13 +0200
committerLoïc Hoguin <[email protected]>2018-06-13 09:23:13 +0200
commit162bdd48ba3c0cd2f79c910fdeb26053916ac8fe (patch)
tree93d0c7eed97418e582a8c2c15014cb605644ef59
parentd65f9d77c2eb178b90dec869c5fecf87921378a3 (diff)
downloadasciideck-162bdd48ba3c0cd2f79c910fdeb26053916ac8fe.tar.gz
asciideck-162bdd48ba3c0cd2f79c910fdeb26053916ac8fe.tar.bz2
asciideck-162bdd48ba3c0cd2f79c910fdeb26053916ac8fe.zip
Add numbered lists in the HTML output
-rw-r--r--src/asciideck_to_html.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/asciideck_to_html.erl b/src/asciideck_to_html.erl
index 5dce089..115606c 100644
--- a/src/asciideck_to_html.erl
+++ b/src/asciideck_to_html.erl
@@ -147,6 +147,8 @@ passthrough_block({passthrough_block, _, HTML, _}) ->
list({list, #{type := bulleted}, Items, _}) ->
["<ul>", fold(Items, fun bulleted_list_item/1), "</ul>\n"];
+list({list, #{type := numbered}, Items, _}) ->
+ ["<ol>", fold(Items, fun bulleted_list_item/1), "</ol>\n"];
list({list, #{type := labeled}, Items, _}) ->
["<dl>", fold(Items, fun labeled_list_item/1), "</dl>\n"].