aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)