diff --git a/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt b/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt index b8904966256..ed60be75ebc 100644 --- a/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt +++ b/idea/src/org/jetbrains/kotlin/idea/kdoc/KDocRenderer.kt @@ -193,6 +193,7 @@ object KDocRenderer { MarkdownTokenTypes.RPAREN, MarkdownTokenTypes.LBRACKET, MarkdownTokenTypes.RBRACKET, + MarkdownTokenTypes.EXCLAMATION_MARK, MarkdownTokenTypes.CODE_FENCE_CONTENT-> { sb.append(nodeText) } diff --git a/idea/testData/editor/quickDoc/OnMethodUsageWithMarkdown.kt b/idea/testData/editor/quickDoc/OnMethodUsageWithMarkdown.kt index 501528184df..dae621b13af 100644 --- a/idea/testData/editor/quickDoc/OnMethodUsageWithMarkdown.kt +++ b/idea/testData/editor/quickDoc/OnMethodUsageWithMarkdown.kt @@ -10,6 +10,8 @@ * * This is _emphasized text_ but text_with_underscores has to preserve the underscores. * Single stars embedded in a word like Embedded*Star have to be preserved as well. + * + * Exclamation marks are also important! Also in `code blocks!` */ fun testMethod() { @@ -27,3 +29,4 @@ fun test() { //INFO:

C

//INFO:

See this class

//INFO:

This is emphasized text but text_with_underscores has to preserve the underscores. Single stars embedded in a word like Embedded*Star have to be preserved as well.

+//INFO:

Exclamation marks are also important! Also in code blocks!