From 6659337410225b813ea902bfa4b2e5ba3c2c1aaa Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 3 Mar 2015 19:35:56 +0100 Subject: support ordered lists --- src/Kotlin/ContentBuilder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Kotlin') diff --git a/src/Kotlin/ContentBuilder.kt b/src/Kotlin/ContentBuilder.kt index 44a4f39e..4081dc6e 100644 --- a/src/Kotlin/ContentBuilder.kt +++ b/src/Kotlin/ContentBuilder.kt @@ -25,12 +25,12 @@ public fun buildContentTo(tree: MarkdownNode, target: ContentBlock, linkResolver val parent = nodeStack.peek()!! when (node.type) { MarkdownElementTypes.UNORDERED_LIST -> { - nodeStack.push(ContentList()) + nodeStack.push(ContentUnorderedList()) processChildren() parent.append(nodeStack.pop()) } MarkdownElementTypes.ORDERED_LIST -> { - nodeStack.push(ContentList()) // TODO: add list kind + nodeStack.push(ContentOrderedList()) processChildren() parent.append(nodeStack.pop()) } -- cgit