aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-09-27 18:01:02 +0300
committerGitHub <noreply@github.com>2022-09-27 18:01:02 +0300
commitbf8e7dc36360bb122599de2f175e5d010eb0cf10 (patch)
tree66864c7d774c0a4c76b3b47b7e90c9d7652690ca /plugins/base/src/main/kotlin/parsers/MarkdownParser.kt
parentb671dc6d85bcf200b5771b755c4a6b52262a2bad (diff)
downloaddokka-bf8e7dc36360bb122599de2f175e5d010eb0cf10.tar.gz
dokka-bf8e7dc36360bb122599de2f175e5d010eb0cf10.tar.bz2
dokka-bf8e7dc36360bb122599de2f175e5d010eb0cf10.zip
Fix some extra indentation in code block that is inside list (#2233)
Diffstat (limited to 'plugins/base/src/main/kotlin/parsers/MarkdownParser.kt')
-rw-r--r--plugins/base/src/main/kotlin/parsers/MarkdownParser.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt b/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt
index a1648b16..d49e7c7a 100644
--- a/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt
+++ b/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt
@@ -327,6 +327,7 @@ open class MarkdownParser(
.children
.dropWhile { it.type != MarkdownTokenTypes.CODE_FENCE_CONTENT }
.dropLastWhile { it.type != MarkdownTokenTypes.CODE_FENCE_CONTENT }
+ .filter { it.type != MarkdownTokenTypes.WHITE_SPACE }
.map {
if (it.type == MarkdownTokenTypes.EOL)
LeafASTNode(MarkdownTokenTypes.HARD_LINE_BREAK, 0, 0)