You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug /** Rotates paths by `amount` **radians** around (`x`, `y`). */
rendered Rotates paths by `amount`**radians** around (`x`, `y`).
Expected behaviour Rotates paths by `amount` **radians** around (`x`, `y`).
To Reproduce
Actual bug is in KDoc parser, to reproduce - add test below in ParserTest.kt
Actually passes with Text(" ") commented-out, while should with uncommented.
@Test
fun`Code and bold`() {
val kdoc ="Rotates paths by `amount` **radians** around (`x`, `y`)."val expectedDocumentationNode =DocumentationNode(
listOf(
Description(
CustomDocTag(
listOf(
P(
listOf(
Text("Rotates paths by "),
CodeInline(listOf(Text("amount"))),
//Text(" "),B(listOf(Text("radians"))),
Text(" around ("),
CodeInline(listOf(Text("x"))),
Text(", "),
CodeInline(listOf(Text("y"))),
Text(")."),
)
)
), name =MarkdownElementTypes.MARKDOWN_FILE.name
)
)
)
)
executeTest(kdoc, expectedDocumentationNode)
}
@Test
fun`Code with backticks`() {
val kdoc ="` `` ` ` ``` `"val expectedDocumentationNode =DocumentationNode(
listOf(
Description(
CustomDocTag(
listOf(
P(
listOf(
CodeInline(listOf(Text("`` "))),
//Text(" "),CodeInline(listOf(Text("``` "))),
)
)
), name =MarkdownElementTypes.MARKDOWN_FILE.name
)
)
)
)
executeTest(kdoc, expectedDocumentationNode)
}
IgnatBeresnev
changed the title
KDoc parser: Missed space after CodeInline
KDoc parser: Missing space between consecutive composite leaf nodes in markdown parser
Aug 12, 2022
Describe the bug
/** Rotates paths by `amount` **radians** around (`x`, `y`). */
rendered
Rotates paths by `amount`**radians** around (`x`, `y`).
Expected behaviour
Rotates paths by `amount` **radians** around (`x`, `y`).
To Reproduce
Actual bug is in KDoc parser, to reproduce - add test below in
ParserTest.kt
Actually passes with
Text(" ")
commented-out, while should with uncommented.Traced - space is removed in
dokka/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt
Line 446 in c2182b7
On entry it is here, on exit - dropped.
Why?
The text was updated successfully, but these errors were encountered: