aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/test/kotlin/markdown
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-04-11 18:22:44 +0300
committerGitHub <noreply@github.com>2022-04-11 18:22:44 +0300
commitc59d6ef872186d185318c2bdcedabf9eaaa7b8ca (patch)
tree0ed30277d90a82beb9be91b296d572fc4560d74f /plugins/base/src/test/kotlin/markdown
parent2f0a259a5f07ebe41e9a5510b3684d95bc40b95f (diff)
downloaddokka-c59d6ef872186d185318c2bdcedabf9eaaa7b8ca.tar.gz
dokka-c59d6ef872186d185318c2bdcedabf9eaaa7b8ca.tar.bz2
dokka-c59d6ef872186d185318c2bdcedabf9eaaa7b8ca.zip
Fix using `@` symbol inside code block (#2418)
Diffstat (limited to 'plugins/base/src/test/kotlin/markdown')
-rw-r--r--plugins/base/src/test/kotlin/markdown/ParserTest.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/base/src/test/kotlin/markdown/ParserTest.kt b/plugins/base/src/test/kotlin/markdown/ParserTest.kt
index a9e1eee4..3498f73f 100644
--- a/plugins/base/src/test/kotlin/markdown/ParserTest.kt
+++ b/plugins/base/src/test/kotlin/markdown/ParserTest.kt
@@ -951,6 +951,7 @@ class ParserTest : KDocTest() {
fun `Multilined Code Block`() {
val kdoc = """
| ```kotlin
+ | @Suppress("UNUSED_VARIABLE")
| val x: Int = 0
| val y: String = "Text"
|
@@ -968,6 +969,7 @@ class ParserTest : KDocTest() {
listOf(
CodeBlock(
listOf(
+ Text("@Suppress(\"UNUSED_VARIABLE\")"), Br,
Text("val x: Int = 0"), Br,
Text("val y: String = \"Text\""), Br, Br,
Text(" val z: Boolean = true"), Br,