diff options
author | Vadim Mishenev <vad-mishenev@yandex.ru> | 2022-09-27 18:01:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 18:01:02 +0300 |
commit | bf8e7dc36360bb122599de2f175e5d010eb0cf10 (patch) | |
tree | 66864c7d774c0a4c76b3b47b7e90c9d7652690ca /plugins/base/src/main/kotlin/parsers/MarkdownParser.kt | |
parent | b671dc6d85bcf200b5771b755c4a6b52262a2bad (diff) | |
download | dokka-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.kt | 1 |
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) |