From ec2bf8a57c744008c30d03c4aec0921a091faa81 Mon Sep 17 00:00:00 2001 From: vmishenev Date: Mon, 9 Aug 2021 12:32:08 +0300 Subject: Keep formatting within code inline (#2060) --- plugins/base/src/main/kotlin/parsers/MarkdownParser.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/base/src/main') 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 ) ) -- cgit