aboutsummaryrefslogtreecommitdiff
path: root/core/testdata
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-07-06 14:39:31 +0200
committerDmitry Jemerov <yole@jetbrains.com>2016-07-06 14:39:31 +0200
commit0f65cf0e4ce531715b76ac32a36a3dff488b2d70 (patch)
tree3682da97a5a1eb105f6319a0afc141af4a4fa6a1 /core/testdata
parentb5367f295be47f2f6ad26f113d80362102b6c36d (diff)
downloaddokka-0f65cf0e4ce531715b76ac32a36a3dff488b2d70.tar.gz
dokka-0f65cf0e4ce531715b76ac32a36a3dff488b2d70.tar.bz2
dokka-0f65cf0e4ce531715b76ac32a36a3dff488b2d70.zip
handle code blocks escaped with multiple backticks correctly; generate extra backticks if text in code block contains backticks (KT-12998, KT-12999)
Diffstat (limited to 'core/testdata')
-rw-r--r--core/testdata/format/backtickInCodeBlock.kt9
-rw-r--r--core/testdata/format/backtickInCodeBlock.md12
2 files changed, 21 insertions, 0 deletions
diff --git a/core/testdata/format/backtickInCodeBlock.kt b/core/testdata/format/backtickInCodeBlock.kt
new file mode 100644
index 00000000..b457efbd
--- /dev/null
+++ b/core/testdata/format/backtickInCodeBlock.kt
@@ -0,0 +1,9 @@
+/**
+ * bt : `` ` ``
+ *
+ * bt+ : ``prefix ` postfix``
+ *
+ * backslash: `\`
+ */
+fun foo() {
+}
diff --git a/core/testdata/format/backtickInCodeBlock.md b/core/testdata/format/backtickInCodeBlock.md
new file mode 100644
index 00000000..fc244630
--- /dev/null
+++ b/core/testdata/format/backtickInCodeBlock.md
@@ -0,0 +1,12 @@
+[test](test/index) / [foo](test/foo)
+
+# foo
+
+`fun foo(): Unit`
+
+bt : `` ` ``
+
+bt+ : ``prefix ` postfix``
+
+backslash: `\`
+