diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 13:38:40 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 13:38:40 +0400 |
commit | 9f0ff55b5f126c31b6d8f3cd28907e5b87601e28 (patch) | |
tree | 1d21012d9a337df969a2d8f4ca22d521e26f0207 /src/Kotlin | |
parent | b3f588ce1d9e6d72b17c1e359008ed90286b1236 (diff) | |
download | dokka-9f0ff55b5f126c31b6d8f3cd28907e5b87601e28.tar.gz dokka-9f0ff55b5f126c31b6d8f3cd28907e5b87601e28.tar.bz2 dokka-9f0ff55b5f126c31b6d8f3cd28907e5b87601e28.zip |
Parse and format inline code, fix strong & emph formatting.
Diffstat (limited to 'src/Kotlin')
-rw-r--r-- | src/Kotlin/ContentBuilder.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Kotlin/ContentBuilder.kt b/src/Kotlin/ContentBuilder.kt index b7290b58..9de3001a 100644 --- a/src/Kotlin/ContentBuilder.kt +++ b/src/Kotlin/ContentBuilder.kt @@ -39,6 +39,11 @@ public fun MarkdownTree.toContent(): Content { processChildren() parent.append(nodeStack.pop()) } + MarkdownElementTypes.CODE -> { + nodeStack.push(ContentCode()) + processChildren() + parent.append(nodeStack.pop()) + } MarkdownElementTypes.ANONYMOUS_SECTION -> { nodeStack.push(ContentSection("")) processChildren() |