blob: 466d78a63b12ae7260be874d0f33ba5527e30e2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package org.jetbrains.dokka.tests.markdownParser
import junit.framework.Assert.assertEquals
import junit.framework.Assert.assertTrue
import org.jetbrains.dokka.DokkaConfiguration
import org.jetbrains.dokka.links.DRI
import org.jetbrains.dokka.pages.buildContent
import org.jetbrains.dokka.parseMarkdown
import org.jetbrains.dokka.resolvers.ExternalLocationProvider
import org.junit.Test
class MarkdownParserTest {
@Test fun basicTest() {
val markdown = """
# Header 1 test
this is some text
more text
let's say there are some parentheses, like ( and )
""".trimIndent()
val node = parseMarkdown(markdown)
val content = buildContent(node, emptyList())
assertTrue(content.isNotEmpty())
}
}
|