aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/Kotlin/ContentBuilder.kt1
-rw-r--r--core/src/test/kotlin/model/CommentTest.kt8
2 files changed, 9 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()) {