diff options
-rw-r--r-- | core/src/main/kotlin/Kotlin/ContentBuilder.kt | 1 | ||||
-rw-r--r-- | core/src/test/kotlin/model/CommentTest.kt | 8 | ||||
-rw-r--r-- | core/testdata/comments/quotes.kt | 2 |
3 files changed, 11 insertions, 0 deletions
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()) { diff --git a/core/testdata/comments/quotes.kt b/core/testdata/comments/quotes.kt new file mode 100644 index 00000000..47ae6892 --- /dev/null +++ b/core/testdata/comments/quotes.kt @@ -0,0 +1,2 @@ +/** it's "useful" */ +val property = "test"
\ No newline at end of file |