diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-15 15:39:32 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-09-15 15:39:32 +0200 |
commit | 8d5e09a1b983be7f82b5c583ab99392669efc3f7 (patch) | |
tree | 3c4a01611b89bdb420fa165db7de6066447ba1e9 | |
parent | 757f72db456cf4dd12b0cfdbf312752d5951f166 (diff) | |
download | dokka-8d5e09a1b983be7f82b5c583ab99392669efc3f7.tar.gz dokka-8d5e09a1b983be7f82b5c583ab99392669efc3f7.tar.bz2 dokka-8d5e09a1b983be7f82b5c583ab99392669efc3f7.zip |
kotlin-for-upsource 0.13.1510; markdown library with ABI 0.25.0
-rw-r--r-- | lib/kotlin-for-upsource.jar | bin | 15675619 -> 15836518 bytes | |||
-rw-r--r-- | lib/markdown.jar | bin | 397526 -> 457523 bytes | |||
-rw-r--r-- | src/Markdown/MarkdownProcessor.kt | 12 |
3 files changed, 7 insertions, 5 deletions
diff --git a/lib/kotlin-for-upsource.jar b/lib/kotlin-for-upsource.jar Binary files differindex 3273f17e..9e2833e2 100644 --- a/lib/kotlin-for-upsource.jar +++ b/lib/kotlin-for-upsource.jar diff --git a/lib/markdown.jar b/lib/markdown.jar Binary files differindex 7628dd44..98dfef2e 100644 --- a/lib/markdown.jar +++ b/lib/markdown.jar diff --git a/src/Markdown/MarkdownProcessor.kt b/src/Markdown/MarkdownProcessor.kt index 13023a2c..62395bc1 100644 --- a/src/Markdown/MarkdownProcessor.kt +++ b/src/Markdown/MarkdownProcessor.kt @@ -1,9 +1,11 @@ package org.jetbrains.dokka -import org.intellij.markdown.* -import org.intellij.markdown.ast.* -import org.intellij.markdown.parser.* -import org.intellij.markdown.parser.dialects.commonmark.CommonMarkMarkerProcessor +import org.intellij.markdown.IElementType +import org.intellij.markdown.MarkdownElementTypes +import org.intellij.markdown.ast.ASTNode +import org.intellij.markdown.ast.LeafASTNode +import org.intellij.markdown.flavours.commonmark.CommonMarkFlavourDescriptor +import org.intellij.markdown.parser.MarkdownParser class MarkdownNode(val node: ASTNode, val parent: MarkdownNode?, val markdown: String) { val children: List<MarkdownNode> = node.children.map { MarkdownNode(it, this, markdown) } @@ -44,5 +46,5 @@ private fun MarkdownNode.presentTo(sb: StringBuilder) { fun parseMarkdown(markdown: String): MarkdownNode { if (markdown.isEmpty()) return MarkdownNode(LeafASTNode(MarkdownElementTypes.MARKDOWN_FILE, 0, 0), null, markdown) - return MarkdownNode(MarkdownParser(CommonMarkMarkerProcessor.Factory).buildMarkdownTreeFromString(markdown), null, markdown) + return MarkdownNode(MarkdownParser(CommonMarkFlavourDescriptor()).buildMarkdownTreeFromString(markdown), null, markdown) } |