diff options
-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) } |