aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-06 16:41:39 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-06 16:41:39 +0100
commitb78e3bb6c7d689bc1650088096461e687ee6441f (patch)
tree176944af6f9042a44a172d08485d236b64ffb465 /src
parent0e76eed8d9fee675542d35f525ff9e8ab6408857 (diff)
downloaddokka-b78e3bb6c7d689bc1650088096461e687ee6441f.tar.gz
dokka-b78e3bb6c7d689bc1650088096461e687ee6441f.tar.bz2
dokka-b78e3bb6c7d689bc1650088096461e687ee6441f.zip
handle code spans in markdown
Diffstat (limited to 'src')
-rw-r--r--src/Kotlin/ContentBuilder.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Kotlin/ContentBuilder.kt b/src/Kotlin/ContentBuilder.kt
index b5647ff0..80d49a85 100644
--- a/src/Kotlin/ContentBuilder.kt
+++ b/src/Kotlin/ContentBuilder.kt
@@ -49,11 +49,16 @@ public fun DocumentationBuilder.buildContentTo(tree: MarkdownNode, target: Conte
processChildren()
parent.append(nodeStack.pop())
}
- MarkdownTokenTypes.CODE -> {
+ MarkdownElementTypes.CODE_SPAN -> {
nodeStack.push(ContentCode())
processChildren()
parent.append(nodeStack.pop())
}
+ MarkdownElementTypes.CODE_BLOCK -> {
+ nodeStack.push(ContentBlockCode())
+ processChildren()
+ parent.append(nodeStack.pop())
+ }
MarkdownElementTypes.INLINE_LINK -> {
val label = node.child(MarkdownElementTypes.LINK_TEXT)?.child(MarkdownTokenTypes.TEXT)
val destination = node.child(MarkdownElementTypes.LINK_DESTINATION)