aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/parsers
diff options
context:
space:
mode:
authorvmishenev <vad-mishenev@yandex.ru>2021-08-09 12:32:08 +0300
committerGitHub <noreply@github.com>2021-08-09 11:32:08 +0200
commitec2bf8a57c744008c30d03c4aec0921a091faa81 (patch)
tree747f0ebd257f2e1644c9ab3fbd3f3452d3af7eab /plugins/base/src/main/kotlin/parsers
parentbcebddee24d13b991c2afa2443689dc651539bb0 (diff)
downloaddokka-ec2bf8a57c744008c30d03c4aec0921a091faa81.tar.gz
dokka-ec2bf8a57c744008c30d03c4aec0921a091faa81.tar.bz2
dokka-ec2bf8a57c744008c30d03c4aec0921a091faa81.zip
Keep formatting within code inline (#2060)
Diffstat (limited to 'plugins/base/src/main/kotlin/parsers')
-rw-r--r--plugins/base/src/main/kotlin/parsers/MarkdownParser.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt b/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt
index 4787c091..75617e0c 100644
--- a/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt
+++ b/plugins/base/src/main/kotlin/parsers/MarkdownParser.kt
@@ -305,7 +305,8 @@ open class MarkdownParser(
node.type,
children = DocTagsFromIElementFactory.getInstance(
MarkdownTokenTypes.TEXT,
- body = text.substring(node.startOffset + 1, node.endOffset - 1).replace('\n', ' ').trimIndent()
+ body = text.substring(node.startOffset + 1, node.endOffset - 1).replace('\n', ' ').trimIndent(),
+ keepFormatting = true
)
)