aboutsummaryrefslogtreecommitdiff
path: root/src/Kotlin
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-09-09 15:11:38 +0200
committerDmitry Jemerov <yole@jetbrains.com>2015-09-09 15:11:38 +0200
commit2c7e6d87d0c1b71081d528d51cc0cde9b1dbb3e7 (patch)
tree3bc887200fdf56a123f0029528d5bd3f3395a58d /src/Kotlin
parent1e862f2fc05c9d01d4d9c00de5d1a4235ff85a9d (diff)
downloaddokka-2c7e6d87d0c1b71081d528d51cc0cde9b1dbb3e7.tar.gz
dokka-2c7e6d87d0c1b71081d528d51cc0cde9b1dbb3e7.tar.bz2
dokka-2c7e6d87d0c1b71081d528d51cc0cde9b1dbb3e7.zip
handle new element types for Markdown code fences
Diffstat (limited to 'src/Kotlin')
-rw-r--r--src/Kotlin/ContentBuilder.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Kotlin/ContentBuilder.kt b/src/Kotlin/ContentBuilder.kt
index f4e81400..ff6eafb0 100644
--- a/src/Kotlin/ContentBuilder.kt
+++ b/src/Kotlin/ContentBuilder.kt
@@ -48,7 +48,8 @@ public fun buildContentTo(tree: MarkdownNode, target: ContentBlock, linkResolver
MarkdownElementTypes.EMPH -> appendNodeWithChildren(ContentEmphasis())
MarkdownElementTypes.STRONG -> appendNodeWithChildren(ContentStrong())
MarkdownElementTypes.CODE_SPAN -> appendNodeWithChildren(ContentCode())
- MarkdownElementTypes.CODE_BLOCK -> appendNodeWithChildren(ContentBlockCode())
+ MarkdownElementTypes.CODE_BLOCK,
+ MarkdownElementTypes.CODE_FENCE -> appendNodeWithChildren(ContentBlockCode())
MarkdownElementTypes.PARAGRAPH -> appendNodeWithChildren(ContentParagraph())
MarkdownElementTypes.INLINE_LINK -> {
@@ -114,7 +115,8 @@ public fun buildContentTo(tree: MarkdownNode, target: ContentBlock, linkResolver
MarkdownTokenTypes.LPAREN,
MarkdownTokenTypes.RPAREN,
MarkdownTokenTypes.LBRACKET,
- MarkdownTokenTypes.RBRACKET -> {
+ MarkdownTokenTypes.RBRACKET,
+ MarkdownTokenTypes.CODE_FENCE_CONTENT -> {
parent.append(ContentText(node.text))
}
else -> {