aboutsummaryrefslogtreecommitdiff
path: root/core/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'core/testdata')
-rw-r--r--core/testdata/format/externalReferenceLink.kt10
-rw-r--r--core/testdata/format/externalReferenceLink.md10
-rw-r--r--core/testdata/format/referenceLink.kt16
-rw-r--r--core/testdata/format/referenceLink.md15
4 files changed, 51 insertions, 0 deletions
diff --git a/core/testdata/format/externalReferenceLink.kt b/core/testdata/format/externalReferenceLink.kt
new file mode 100644
index 00000000..4ca0ee21
--- /dev/null
+++ b/core/testdata/format/externalReferenceLink.kt
@@ -0,0 +1,10 @@
+/**
+ * It is link to [example site][example.com]
+ *
+ * Sure, it is [example.com]
+ *
+ * [example.com]: http://example.com
+ */
+fun a() {
+
+} \ No newline at end of file
diff --git a/core/testdata/format/externalReferenceLink.md b/core/testdata/format/externalReferenceLink.md
new file mode 100644
index 00000000..29d64afe
--- /dev/null
+++ b/core/testdata/format/externalReferenceLink.md
@@ -0,0 +1,10 @@
+[test](test/index) / [a](test/a)
+
+# a
+
+`fun a(): Unit`
+
+It is link to [example site](http://example.com)
+
+Sure, it is [example.com](http://example.com)
+
diff --git a/core/testdata/format/referenceLink.kt b/core/testdata/format/referenceLink.kt
new file mode 100644
index 00000000..c6550f04
--- /dev/null
+++ b/core/testdata/format/referenceLink.kt
@@ -0,0 +1,16 @@
+package example
+
+/**
+ * It is link to [example other func][example]
+ *
+ * Sure, it is [example]
+ *
+ * [example]: example.someOtherFunc
+ */
+fun a() {
+
+}
+
+fun someOtherFunc() {
+
+} \ No newline at end of file
diff --git a/core/testdata/format/referenceLink.md b/core/testdata/format/referenceLink.md
new file mode 100644
index 00000000..b3d89e0d
--- /dev/null
+++ b/core/testdata/format/referenceLink.md
@@ -0,0 +1,15 @@
+[test](test/index) / [example](test/example/index) / [a](test/example/a)
+
+# a
+
+`fun a(): Unit`
+
+It is link to [example other func](test/example/some-other-func)
+
+Sure, it is [example](test/example/some-other-func)
+
+[test](test/index) / [example](test/example/index) / [someOtherFunc](test/example/some-other-func)
+
+# someOtherFunc
+
+`fun someOtherFunc(): Unit` \ No newline at end of file