From ee824b90249fd1d6d868af998c6826df31ab557b Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Tue, 1 Nov 2016 18:44:23 +0300 Subject: Fix for GH #95 , KT-13300 : dokka eats apostrophes --- core/src/main/kotlin/Kotlin/ContentBuilder.kt | 1 + core/src/test/kotlin/model/CommentTest.kt | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'core/src') diff --git a/core/src/main/kotlin/Kotlin/ContentBuilder.kt b/core/src/main/kotlin/Kotlin/ContentBuilder.kt index 7bee6936..61c67787 100644 --- a/core/src/main/kotlin/Kotlin/ContentBuilder.kt +++ b/core/src/main/kotlin/Kotlin/ContentBuilder.kt @@ -123,6 +123,7 @@ fun buildContentTo(tree: MarkdownNode, target: ContentBlock, linkResolver: (Stri } MarkdownTokenTypes.COLON, + MarkdownTokenTypes.SINGLE_QUOTE, MarkdownTokenTypes.DOUBLE_QUOTE, MarkdownTokenTypes.LT, MarkdownTokenTypes.GT, diff --git a/core/src/test/kotlin/model/CommentTest.kt b/core/src/test/kotlin/model/CommentTest.kt index 5dfd1157..457affee 100644 --- a/core/src/test/kotlin/model/CommentTest.kt +++ b/core/src/test/kotlin/model/CommentTest.kt @@ -76,6 +76,14 @@ public class CommentTest { } } + @Test fun quotes() { + verifyModel("testdata/comments/quotes.kt") { model -> + with(model.members.single().members.single()) { + assertEquals("it's \"useful\"", content.summary.toTestString()) + } + } + } + @Test fun section1() { verifyModel("testdata/comments/section1.kt") { model -> with(model.members.single().members.single()) { -- cgit