From 7546efb83afa39770be5c7b9df72edc115e59a5b Mon Sep 17 00:00:00 2001
From: Ignat Beresnev bar[] This references noSuchIdentifier. This annotation indicates what exceptions should be declared by a function when compiled to a JVM method. Example: This annotation indicates what exceptions should be declared by a function when compiled to a JVM method. Check output of Check output of 1 = 3 1 = 3 This is a See xyzzy See xyzzy Copyright © JetBrains 2015 " Copyright © JetBrains 2015 " Special characters: < is "less than", > is "greater than", & is "ampersand" Create a new Foo value as follows: {@code AC} {@literal AC} Call Call Call Call See Also Paragraph Use this method for best results. Use this method for best results. Usage instructions: Usage instructions: Performs an action on x. Performs an action on x. This is a long description.
- Performs an action on x. This is a long description.
- Performs an action on x. This is a long description.
- Runs processor for each file and collects its results into single list
- foo (bar) Return See Also
-
-Bar
-open class Bar : JavaSupertype.Foo
-Constructors
-
-
-
-
-
-
-
-
-<init>
-
-
-Bar()
Functions
-
-
-
-
-
diff --git a/core/testdata/format/JavaSupertype.java b/core/testdata/format/JavaSupertype.java
deleted file mode 100644
index 2045573c..00000000
--- a/core/testdata/format/JavaSupertype.java
+++ /dev/null
@@ -1,8 +0,0 @@
-public class JavaSupertype {
- public static class Foo {
- }
-
- public static class Bar extends Foo {
- public Foo returnFoo(Foo foo) { return foo; }
- }
-}
diff --git a/core/testdata/format/accessor.kt b/core/testdata/format/accessor.kt
deleted file mode 100644
index 5a4d1742..00000000
--- a/core/testdata/format/accessor.kt
+++ /dev/null
@@ -1,5 +0,0 @@
-class C() {
- var x: String
- /** The getter returns an empty string. */ get() = ""
- /** The setter does nothing. */ set(value) { }
-}
diff --git a/core/testdata/format/accessor.md b/core/testdata/format/accessor.md
deleted file mode 100644
index 9bb2c4ed..00000000
--- a/core/testdata/format/accessor.md
+++ /dev/null
@@ -1,14 +0,0 @@
-[test](../../index.md) / [C](index.md) / [x](./x.md)
-
-# x
-
-`var x: String`
-
-**Getter**
-
-The getter returns an empty string.
-
-**Setter**
-
-The setter does nothing.
-
diff --git a/core/testdata/format/annotatedTypeParameter.kt b/core/testdata/format/annotatedTypeParameter.kt
deleted file mode 100644
index cc3bfc1a..00000000
--- a/core/testdata/format/annotatedTypeParameter.kt
+++ /dev/null
@@ -1,2 +0,0 @@
-public fun
-
-
-
-
-returnFoo
-
-
-open fun returnFoo(foo: JavaSupertype.Foo!): JavaSupertype.Foo!
`fun `[`XArray`](./index.md)`
`fun `[`XArray`](./index.md)`
`fun `[`XArray`](./index.md)`
`fun `[`XArray`](./index.md)`
`fun `[`XArray`](./index.md)`
-
-u
-
-fun u(): Unit
-
-
diff --git a/core/testdata/format/blankLineInsideCodeBlock.kt b/core/testdata/format/blankLineInsideCodeBlock.kt
deleted file mode 100644
index 9430f4d5..00000000
--- a/core/testdata/format/blankLineInsideCodeBlock.kt
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * ```
- * This is a test
- * of Dokka's code blocks.
- * Here is a blank line.
- *
- * The previous line was blank.
- * ```
- */
-fun u() {
-
-}
\ No newline at end of file
diff --git a/core/testdata/format/blankLineInsideCodeBlock.md b/core/testdata/format/blankLineInsideCodeBlock.md
deleted file mode 100644
index 1a3ef10e..00000000
--- a/core/testdata/format/blankLineInsideCodeBlock.md
+++ /dev/null
@@ -1,14 +0,0 @@
-[test](../index.md) / [u](./u.md)
-
-# u
-
-`fun u(): Unit`
-
-```
-This is a test
- of Dokka's code blocks.
-Here is a blank line.
-
-The previous line was blank.
-```
-
diff --git a/core/testdata/format/bracket.html b/core/testdata/format/bracket.html
deleted file mode 100644
index 5ba19b73..00000000
--- a/core/testdata/format/bracket.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-This is a test
- of Dokka's code blocks.
-Here is a blank line.
-
-The previous line was blank.
-
-
-foo
-
-fun foo(): Unit
-
-
-f
-
-fun f(): Unit
-
-
-Klass
-class Klass
-Constructors
-
-
-
-
-
-
-
-
-<init>
-
-
-Klass()
Companion Object Properties
-
-
-
-
-
-
-
-
-x
-
-
-val x: Int
Companion Object Functions
-
-
-
-
-
diff --git a/core/testdata/format/classWithCompanionObject.kt b/core/testdata/format/classWithCompanionObject.kt
deleted file mode 100644
index fdbd915d..00000000
--- a/core/testdata/format/classWithCompanionObject.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-class Klass() {
- companion object {
- val x = 1
-
- fun foo() {}
- }
-}
diff --git a/core/testdata/format/classWithCompanionObject.md b/core/testdata/format/classWithCompanionObject.md
deleted file mode 100644
index 850e51ec..00000000
--- a/core/testdata/format/classWithCompanionObject.md
+++ /dev/null
@@ -1,18 +0,0 @@
-[test](../../index.md) / [Klass](./index.md)
-
-# Klass
-
-`class Klass`
-
-### Constructors
-
-| [<init>](-init-.md) | `Klass()` |
-
-### Companion Object Properties
-
-| [x](x.md) | `val x: Int` |
-
-### Companion Object Functions
-
-| [foo](foo.md) | `fun foo(): Unit` |
-
diff --git a/core/testdata/format/codeBlock.html b/core/testdata/format/codeBlock.html
deleted file mode 100644
index ead4dbc0..00000000
--- a/core/testdata/format/codeBlock.html
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
-
-
-
-
-
-foo
-
-
-fun foo(): Unit
-
-Throws
-class Throws
-
-Throws(IOException::class)
-fun readFile(name: String): String {...}
-
Constructors
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<init>
-
-
-Throws()
-
-ItDoesSomeObfuscatedThing
-class ItDoesSomeObfuscatedThing
-
-++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
-
Constructors
-
-
-
-
-
diff --git a/core/testdata/format/codeBlock.kt b/core/testdata/format/codeBlock.kt
deleted file mode 100644
index 633bf414..00000000
--- a/core/testdata/format/codeBlock.kt
+++ /dev/null
@@ -1,22 +0,0 @@
-import kotlin.reflect.KClass
-
-/**
- * This annotation indicates what exceptions should be declared by a function when compiled to a JVM method.
- *
- * Example:
- *
- * ```
- * Throws(IOException::class)
- * fun readFile(name: String): String {...}
- * ```
- */
-class Throws
-
-
-/**
- * Check output of
- * ``` brainfuck
- * ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
- * ```
- */
-class ItDoesSomeObfuscatedThing
\ No newline at end of file
diff --git a/core/testdata/format/codeBlock.md b/core/testdata/format/codeBlock.md
deleted file mode 100644
index c14fc7bd..00000000
--- a/core/testdata/format/codeBlock.md
+++ /dev/null
@@ -1,37 +0,0 @@
-
-[test](../../index.md) / [Throws](./index.md)
-
-# Throws
-
-`class Throws`
-
-This annotation indicates what exceptions should be declared by a function when compiled to a JVM method.
-
-Example:
-
-```
-Throws(IOException::class)
-fun readFile(name: String): String {...}
-```
-
-### Constructors
-
-| [<init>](-init-.md) | This annotation indicates what exceptions should be declared by a function when compiled to a JVM method.`Throws()` |
-
-
-[test](../../index.md) / [ItDoesSomeObfuscatedThing](./index.md)
-
-# ItDoesSomeObfuscatedThing
-
-`class ItDoesSomeObfuscatedThing`
-
-Check output of
-
-``` brainfuck
-++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
-```
-
-### Constructors
-
-| [<init>](-init-.md) | Check output of`ItDoesSomeObfuscatedThing()` |
-
diff --git a/core/testdata/format/codeBlockNoHtmlEscape.kt b/core/testdata/format/codeBlockNoHtmlEscape.kt
deleted file mode 100644
index 5f48b39c..00000000
--- a/core/testdata/format/codeBlockNoHtmlEscape.kt
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Try to make this check pass
- * ```
- * if(1 > 2)
- * ```
- * Or just piece of html
- * ```
- *
-
-
-
-
-<init>
-
-
-ItDoesSomeObfuscatedThing()
-
-foo
-
-fun foo(): Unit
-code span
.
-
-Bar
-class Bar : Foo
-Constructors
-
-
-
-
-
-
-
-
-<init>
-
-
-Bar()
Inherited Functions
-
-
-
-
-
diff --git a/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.kt b/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.kt
deleted file mode 100644
index 102782f9..00000000
--- a/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-package test
-
-/**
- * See [xyzzy]
- */
-class Bar(): Foo()
diff --git a/core/testdata/format/crossLanguage/kotlinExtendsJava/test/Foo.java b/core/testdata/format/crossLanguage/kotlinExtendsJava/test/Foo.java
deleted file mode 100644
index 7c143030..00000000
--- a/core/testdata/format/crossLanguage/kotlinExtendsJava/test/Foo.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package test;
-
-public class Foo {
- public void xyzzy() {
- }
-}
diff --git a/core/testdata/format/deprecated.class.html b/core/testdata/format/deprecated.class.html
deleted file mode 100644
index 11d2e944..00000000
--- a/core/testdata/format/deprecated.class.html
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
-
-
-
-
-xyzzy
-
-
-open fun xyzzy(): Unit
-
-C
-class
C
-Deprecated: This class sucks
-
-Constructors
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<init>
-
-
-C()
-
-f
-
-fun
f(): Unit
-Deprecated: This function sucks
-
-
-
-
-
-
-
-
-
-p
-
-val
p: Int
-Deprecated: This property sucks
-
-
-
diff --git a/core/testdata/format/deprecated.kt b/core/testdata/format/deprecated.kt
deleted file mode 100644
index 4fc568c2..00000000
--- a/core/testdata/format/deprecated.kt
+++ /dev/null
@@ -1,5 +0,0 @@
-@Deprecated("This class sucks") class C() { }
-
-@Deprecated("This function sucks") fun f() { }
-
-@Deprecated("This property sucks") val p: Int get() = 0
diff --git a/core/testdata/format/deprecated.package.html b/core/testdata/format/deprecated.package.html
deleted file mode 100644
index 5b218f74..00000000
--- a/core/testdata/format/deprecated.package.html
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-Package <root>
-Types
-
-
-
-
-
-
-
-
-C
-
-
-class
CProperties
-
-
-
-
-
-
-
-
-p
-
-
-val
p: IntFunctions
-
-
-
-
-
diff --git a/core/testdata/format/dynamicExtension.kt b/core/testdata/format/dynamicExtension.kt
deleted file mode 100644
index 5c83bf22..00000000
--- a/core/testdata/format/dynamicExtension.kt
+++ /dev/null
@@ -1,3 +0,0 @@
-class Foo
-
-fun dynamic.bar() {}
diff --git a/core/testdata/format/dynamicExtension.md b/core/testdata/format/dynamicExtension.md
deleted file mode 100644
index ed81d66c..00000000
--- a/core/testdata/format/dynamicExtension.md
+++ /dev/null
@@ -1,10 +0,0 @@
-[test](../../index.md) / [Foo](./index.md)
-
-# Foo
-
-`class Foo`
-
-### Constructors
-
-| [<init>](-init-.md) | `Foo()` |
-
diff --git a/core/testdata/format/dynamicType.kt b/core/testdata/format/dynamicType.kt
deleted file mode 100644
index 9d557ac0..00000000
--- a/core/testdata/format/dynamicType.kt
+++ /dev/null
@@ -1,2 +0,0 @@
-fun foo(): dynamic = ""
-
diff --git a/core/testdata/format/dynamicType.md b/core/testdata/format/dynamicType.md
deleted file mode 100644
index cfb8fd25..00000000
--- a/core/testdata/format/dynamicType.md
+++ /dev/null
@@ -1,5 +0,0 @@
-[test](../index.md) / [foo](./foo.md)
-
-# foo
-
-`fun foo(): dynamic`
\ No newline at end of file
diff --git a/core/testdata/format/emptyDescription.kt b/core/testdata/format/emptyDescription.kt
deleted file mode 100644
index 3ed81dfa..00000000
--- a/core/testdata/format/emptyDescription.kt
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * Function fn
- */
-fun fn() {
-}
\ No newline at end of file
diff --git a/core/testdata/format/emptyDescription.md b/core/testdata/format/emptyDescription.md
deleted file mode 100644
index 3c14ab75..00000000
--- a/core/testdata/format/emptyDescription.md
+++ /dev/null
@@ -1,8 +0,0 @@
-[test](../index.md) / [fn](./fn.md)
-
-# fn
-
-`fun fn(): Unit`
-
-Function fn
-
diff --git a/core/testdata/format/entity.html b/core/testdata/format/entity.html
deleted file mode 100644
index bfeb34ea..00000000
--- a/core/testdata/format/entity.html
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-f
-
-
-fun
f(): Unit
-
-Bar
-class Bar
-Constructors
-
-
-
-
-
diff --git a/core/testdata/format/entity.kt b/core/testdata/format/entity.kt
deleted file mode 100644
index 163d2ee6..00000000
--- a/core/testdata/format/entity.kt
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * Copyright © JetBrains 2015 "
- */
-class Bar {}
diff --git a/core/testdata/format/enumClass.kt b/core/testdata/format/enumClass.kt
deleted file mode 100644
index 3c2a49fc..00000000
--- a/core/testdata/format/enumClass.kt
+++ /dev/null
@@ -1,4 +0,0 @@
-public enum class InlineOption {
- ONLY_LOCAL_RETURN,
- LOCAL_CONTINUE_AND_BREAK
-}
diff --git a/core/testdata/format/enumClass.md b/core/testdata/format/enumClass.md
deleted file mode 100644
index 15070049..00000000
--- a/core/testdata/format/enumClass.md
+++ /dev/null
@@ -1,11 +0,0 @@
-[test](../../index.md) / [InlineOption](./index.md)
-
-# InlineOption
-
-`enum class InlineOption`
-
-### Enum Values
-
-| [ONLY_LOCAL_RETURN](-o-n-l-y_-l-o-c-a-l_-r-e-t-u-r-n.md) | |
-| [LOCAL_CONTINUE_AND_BREAK](-l-o-c-a-l_-c-o-n-t-i-n-u-e_-a-n-d_-b-r-e-a-k.md) | |
-
diff --git a/core/testdata/format/enumClass.value.md b/core/testdata/format/enumClass.value.md
deleted file mode 100644
index 9000a1c4..00000000
--- a/core/testdata/format/enumClass.value.md
+++ /dev/null
@@ -1,5 +0,0 @@
-[test](../../index.md) / [InlineOption](index.md) / [LOCAL_CONTINUE_AND_BREAK](./-l-o-c-a-l_-c-o-n-t-i-n-u-e_-a-n-d_-b-r-e-a-k.md)
-
-# LOCAL_CONTINUE_AND_BREAK
-
-`LOCAL_CONTINUE_AND_BREAK`
\ No newline at end of file
diff --git a/core/testdata/format/enumRef.kt b/core/testdata/format/enumRef.kt
deleted file mode 100644
index 5c0b2de9..00000000
--- a/core/testdata/format/enumRef.kt
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * [java.math.RoundingMode.UP]
- */
-fun f() {}
\ No newline at end of file
diff --git a/core/testdata/format/enumRef.md b/core/testdata/format/enumRef.md
deleted file mode 100644
index 5f6b2f64..00000000
--- a/core/testdata/format/enumRef.md
+++ /dev/null
@@ -1,8 +0,0 @@
-[test](../index.md) / [f](./f.md)
-
-# f
-
-`fun f(): Unit`
-
-[java.math.RoundingMode.UP](https://docs.oracle.com/javase/6/docs/api/java/math/RoundingMode.html#UP)
-
diff --git a/core/testdata/format/exceptionClass.kt b/core/testdata/format/exceptionClass.kt
deleted file mode 100644
index d005bd89..00000000
--- a/core/testdata/format/exceptionClass.kt
+++ /dev/null
@@ -1 +0,0 @@
-class MyException : Exception
diff --git a/core/testdata/format/exceptionClass.md b/core/testdata/format/exceptionClass.md
deleted file mode 100644
index 44ad6705..00000000
--- a/core/testdata/format/exceptionClass.md
+++ /dev/null
@@ -1,10 +0,0 @@
-[test](../../index.md) / [MyException](./index.md)
-
-# MyException
-
-`class MyException : Exception`
-
-### Constructors
-
-| [<init>](-init-.md) | `MyException()` |
-
diff --git a/core/testdata/format/exceptionClass.package.md b/core/testdata/format/exceptionClass.package.md
deleted file mode 100644
index 13b1c7db..00000000
--- a/core/testdata/format/exceptionClass.package.md
+++ /dev/null
@@ -1,8 +0,0 @@
-[test](../index.md)
-
-## Package <root>
-
-### Exceptions
-
-| [MyException](-my-exception/index.md) | `class MyException : Exception` |
-
diff --git a/core/testdata/format/exclInCodeBlock.kt b/core/testdata/format/exclInCodeBlock.kt
deleted file mode 100644
index 62b234dd..00000000
--- a/core/testdata/format/exclInCodeBlock.kt
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * The magic word is `!`
- */
-fun foo() {
-}
diff --git a/core/testdata/format/exclInCodeBlock.md b/core/testdata/format/exclInCodeBlock.md
deleted file mode 100644
index 0302570e..00000000
--- a/core/testdata/format/exclInCodeBlock.md
+++ /dev/null
@@ -1,8 +0,0 @@
-[test](../index.md) / [foo](./foo.md)
-
-# foo
-
-`fun foo(): Unit`
-
-The magic word is `!`
-
diff --git a/core/testdata/format/extensionFunctionParameter.kt b/core/testdata/format/extensionFunctionParameter.kt
deleted file mode 100644
index bfb344b9..00000000
--- a/core/testdata/format/extensionFunctionParameter.kt
+++ /dev/null
@@ -1 +0,0 @@
-public inline fun
-
-
-
-
-<init>
-
-
-Bar()
`fun String.fn(x: Int): Unit` |
-| [foobar](foobar.md) | Property with receiver.`val String.foobar: Int` |
-
diff --git a/core/testdata/format/extensions.kt b/core/testdata/format/extensions.kt
deleted file mode 100644
index 6f2eff9d..00000000
--- a/core/testdata/format/extensions.kt
+++ /dev/null
@@ -1,19 +0,0 @@
-package foo
-
-/**
- * Function with receiver
- */
-fun String.fn() {
-}
-
-/**
- * Function with receiver
- */
-fun String.fn(x: Int) {
-}
-
-/**
- * Property with receiver.
- */
-val String.foobar: Int
- get() = size() * 2
diff --git a/core/testdata/format/extensions.package.md b/core/testdata/format/extensions.package.md
deleted file mode 100644
index ad895116..00000000
--- a/core/testdata/format/extensions.package.md
+++ /dev/null
@@ -1,8 +0,0 @@
-[test](../index.md) / [foo](./index.md)
-
-## Package foo
-
-### Extensions for External Classes
-
-| [kotlin.String](kotlin.-string/index.md) | |
-
diff --git a/core/testdata/format/externalReferenceLink.kt b/core/testdata/format/externalReferenceLink.kt
deleted file mode 100644
index 775b2e66..00000000
--- a/core/testdata/format/externalReferenceLink.kt
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * It is link to [example site][example.com]
- *
- * Sure, it is [example.com]
- *
- * [example.com]: https://example.com
- */
-fun a() {
-
-}
\ No newline at end of file
diff --git a/core/testdata/format/externalReferenceLink.md b/core/testdata/format/externalReferenceLink.md
deleted file mode 100644
index 73840e76..00000000
--- a/core/testdata/format/externalReferenceLink.md
+++ /dev/null
@@ -1,10 +0,0 @@
-[test](../index.md) / [a](./a.md)
-
-# a
-
-`fun a(): Unit`
-
-It is link to [example site](https://example.com)
-
-Sure, it is [example.com](https://example.com)
-
diff --git a/core/testdata/format/functionWithDefaultParameter.kt b/core/testdata/format/functionWithDefaultParameter.kt
deleted file mode 100644
index 3a3a102f..00000000
--- a/core/testdata/format/functionWithDefaultParameter.kt
+++ /dev/null
@@ -1 +0,0 @@
-fun f(x: String = "") {}
diff --git a/core/testdata/format/functionWithDefaultParameter.md b/core/testdata/format/functionWithDefaultParameter.md
deleted file mode 100644
index 535ea18d..00000000
--- a/core/testdata/format/functionWithDefaultParameter.md
+++ /dev/null
@@ -1,5 +0,0 @@
-[test](../index.md) / [f](./f.md)
-
-# f
-
-`fun f(x: String = ""): Unit`
\ No newline at end of file
diff --git a/core/testdata/format/functionalTypeWithNamedParameters.html b/core/testdata/format/functionalTypeWithNamedParameters.html
deleted file mode 100644
index af97eb4e..00000000
--- a/core/testdata/format/functionalTypeWithNamedParameters.html
+++ /dev/null
@@ -1,103 +0,0 @@
-
-
-
-
-
-
-A
-class A
-Constructors
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<init>
-
-
-A()
-
-B
-class B
-Constructors
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<init>
-
-
-B()
-
-C
-class C
-Constructors
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<init>
-
-
-C()
-
-f
-
-val f: (a: A, b: B) -> C
-
-
-
-
-
-
-
-
-acceptFunctionTypeWithNamedArguments
-
-fun acceptFunctionTypeWithNamedArguments(f: (bb: B, aa: A) -> C): Unit
-
-
diff --git a/core/testdata/format/functionalTypeWithNamedParameters.kt b/core/testdata/format/functionalTypeWithNamedParameters.kt
deleted file mode 100644
index 3dada27a..00000000
--- a/core/testdata/format/functionalTypeWithNamedParameters.kt
+++ /dev/null
@@ -1,9 +0,0 @@
-class A
-class B
-class C
-
-val f: (a: A, b: B) -> C = { a, b -> C() }
-
-fun acceptFunctionTypeWithNamedArguments(f: (bb: B, aa: A) -> C) {
-
-}
\ No newline at end of file
diff --git a/core/testdata/format/functionalTypeWithNamedParameters.md b/core/testdata/format/functionalTypeWithNamedParameters.md
deleted file mode 100644
index e1c9681a..00000000
--- a/core/testdata/format/functionalTypeWithNamedParameters.md
+++ /dev/null
@@ -1,45 +0,0 @@
-
-[test](../../index.md) / [A](./index.md)
-
-# A
-
-`class A`
-
-### Constructors
-
-| [<init>](-init-.md) | `A()` |
-
-
-[test](../../index.md) / [B](./index.md)
-
-# B
-
-`class B`
-
-### Constructors
-
-| [<init>](-init-.md) | `B()` |
-
-
-[test](../../index.md) / [C](./index.md)
-
-# C
-
-`class C`
-
-### Constructors
-
-| [<init>](-init-.md) | `C()` |
-
-
-[test](../index.md) / [f](./f.md)
-
-# f
-
-`val f: (a: `[`A`](-a/index.md)`, b: `[`B`](-b/index.md)`) -> `[`C`](-c/index.md)
-
-[test](../index.md) / [acceptFunctionTypeWithNamedArguments](./accept-function-type-with-named-arguments.md)
-
-# acceptFunctionTypeWithNamedArguments
-
-`fun acceptFunctionTypeWithNamedArguments(f: (bb: `[`B`](-b/index.md)`, aa: `[`A`](-a/index.md)`) -> `[`C`](-c/index.md)`): Unit`
\ No newline at end of file
diff --git a/core/testdata/format/genericInheritedExtensions.kt b/core/testdata/format/genericInheritedExtensions.kt
deleted file mode 100644
index 4c07e1e5..00000000
--- a/core/testdata/format/genericInheritedExtensions.kt
+++ /dev/null
@@ -1,11 +0,0 @@
-open class Foo
`fun foo(): Unit` |
diff --git a/core/testdata/format/gfm/sample.kt b/core/testdata/format/gfm/sample.kt
deleted file mode 100644
index 3300d2c8..00000000
--- a/core/testdata/format/gfm/sample.kt
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- * The class Foo.
- */
-class Foo {
- /**
- * The method bar.
- */
- fun bar() {
-
- }
-
- /**
- * The method baz.
- */
- fun baz() {
-
- }
-}
\ No newline at end of file
diff --git a/core/testdata/format/gfm/sample.md b/core/testdata/format/gfm/sample.md
deleted file mode 100644
index a9464ea3..00000000
--- a/core/testdata/format/gfm/sample.md
+++ /dev/null
@@ -1,20 +0,0 @@
-[test](../../index.md) / [Foo](./index.md)
-
-# Foo
-
-`class Foo`
-
-The class Foo.
-
-### Constructors
-
-| Name | Summary |
-|---|---|
-| [<init>](-init-.md) | The class Foo.`Foo()` |
-
-### Functions
-
-| Name | Summary |
-|---|---|
-| [bar](bar.md) | The method bar.`fun bar(): Unit` |
-| [baz](baz.md) | The method baz.`fun baz(): Unit` |
diff --git a/core/testdata/format/htmlEscaping.html b/core/testdata/format/htmlEscaping.html
deleted file mode 100644
index 435c3149..00000000
--- a/core/testdata/format/htmlEscaping.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-x
-
-fun <T> x(): T?
-
-
-foo
-
-fun foo(): Unit
-
-
-
diff --git a/core/testdata/format/indentedCodeBlock.kt b/core/testdata/format/indentedCodeBlock.kt
deleted file mode 100644
index 19c5365b..00000000
--- a/core/testdata/format/indentedCodeBlock.kt
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Create a new Foo value as follows:
- *
- * val foo = Foo.create {
- * type { "ABC" }
- * }
- */
-fun foo() {
-
-}
\ No newline at end of file
diff --git a/core/testdata/format/indentedCodeBlock.md b/core/testdata/format/indentedCodeBlock.md
deleted file mode 100644
index 7542ddb9..00000000
--- a/core/testdata/format/indentedCodeBlock.md
+++ /dev/null
@@ -1,14 +0,0 @@
-[test](../index.md) / [foo](./foo.md)
-
-# foo
-
-`fun foo(): Unit`
-
-Create a new Foo value as follows:
-
-```
- val foo = Foo.create {
- type { "ABC" }
- }
-```
-
diff --git a/core/testdata/format/inheritedCompanionObjectProperties.kt b/core/testdata/format/inheritedCompanionObjectProperties.kt
deleted file mode 100644
index 74a3749c..00000000
--- a/core/testdata/format/inheritedCompanionObjectProperties.kt
+++ /dev/null
@@ -1,18 +0,0 @@
-open class A {
- fun foo() {
- }
-}
-
-open class B {
- fun bar() {
- }
-}
-
-class C : A {
- fun xyzzy() {
- }
-
- companion object : B () {
- fun shazam()
- }
-}
diff --git a/core/testdata/format/inheritedCompanionObjectProperties.md b/core/testdata/format/inheritedCompanionObjectProperties.md
deleted file mode 100644
index 700570cc..00000000
--- a/core/testdata/format/inheritedCompanionObjectProperties.md
+++ /dev/null
@@ -1,30 +0,0 @@
-[test](../../index.md) / [C](./index.md)
-
-# C
-
-`class C : `[`A`](../-a/index.md)
-
-### Types
-
-| [Companion](-companion/index.md) | `companion object Companion : `[`B`](../-b/index.md) |
-
-### Constructors
-
-| [<init>](-init-.md) | `C()` |
-
-### Functions
-
-| [xyzzy](xyzzy.md) | `fun xyzzy(): Unit` |
-
-### Inherited Functions
-
-| [foo](../-a/foo.md) | `fun foo(): Unit` |
-
-### Companion Object Functions
-
-| [shazam](shazam.md) | `fun shazam(): Unit` |
-
-### Inherited Companion Object Functions
-
-| [bar](../-b/bar.md) | `fun bar(): Unit` |
-
diff --git a/core/testdata/format/inheritedExtensions.kt b/core/testdata/format/inheritedExtensions.kt
deleted file mode 100644
index e38fe00d..00000000
--- a/core/testdata/format/inheritedExtensions.kt
+++ /dev/null
@@ -1,11 +0,0 @@
-open class Foo
-
-class Bar : Foo()
-
-fun Foo.first() {
-
-}
-
-fun Bar.second() {
-
-}
diff --git a/core/testdata/format/inheritedExtensions.md b/core/testdata/format/inheritedExtensions.md
deleted file mode 100644
index 3b105e28..00000000
--- a/core/testdata/format/inheritedExtensions.md
+++ /dev/null
@@ -1,15 +0,0 @@
-[test](../../index.md) / [Bar](./index.md)
-
-# Bar
-
-`class Bar : `[`Foo`](../-foo/index.md)
-
-### Constructors
-
-| [<init>](-init-.md) | `Bar()` |
-
-### Extension Functions
-
-| [first](../first.md) | `fun `[`Foo`](../-foo/index.md)`.first(): Unit` |
-| [second](../second.md) | `fun `[`Bar`](./index.md)`.second(): Unit` |
-
diff --git a/core/testdata/format/inheritedLink.1.kt b/core/testdata/format/inheritedLink.1.kt
deleted file mode 100644
index 29cc12b4..00000000
--- a/core/testdata/format/inheritedLink.1.kt
+++ /dev/null
@@ -1,10 +0,0 @@
-package p1
-
-import java.util.LinkedList
-
-interface Foo {
-
- /** Says hello - [LinkedList]. */
- fun sayHello() : String
-
-}
\ No newline at end of file
diff --git a/core/testdata/format/inheritedLink.kt b/core/testdata/format/inheritedLink.kt
deleted file mode 100644
index 86b8f4e2..00000000
--- a/core/testdata/format/inheritedLink.kt
+++ /dev/null
@@ -1,11 +0,0 @@
-package p2
-
-import p1.Foo
-
-class FooBar : Foo {
-
- override fun sayHello(): String {
- return "Hello!"
- }
-
-}
\ No newline at end of file
diff --git a/core/testdata/format/inheritedLink.md b/core/testdata/format/inheritedLink.md
deleted file mode 100644
index aec07a75..00000000
--- a/core/testdata/format/inheritedLink.md
+++ /dev/null
@@ -1,17 +0,0 @@
-
-[test](../../index.md) / [p2](../index.md) / [FooBar](index.md) / [<init>](./-init-.md)
-
-# <init>
-
-`FooBar()`
-
-[test](../../index.md) / [p2](../index.md) / [FooBar](index.md) / [sayHello](./say-hello.md)
-
-# sayHello
-
-`fun sayHello(): String`
-
-Overrides [Foo.sayHello](../../p1/-foo/say-hello.md)
-
-Says hello - [LinkedList](https://docs.oracle.com/javase/6/docs/api/java/util/LinkedList.html).
-
diff --git a/core/testdata/format/inheritedMembers.kt b/core/testdata/format/inheritedMembers.kt
deleted file mode 100644
index 2d0c4ca1..00000000
--- a/core/testdata/format/inheritedMembers.kt
+++ /dev/null
@@ -1,12 +0,0 @@
-open class Foo {
- fun first() {
- }
-
- val firstProp: Int = 0
-}
-
-class Bar : Foo() {
- fun second()
-
- val secondProp: Int = 1
-}
diff --git a/core/testdata/format/inheritedMembers.md b/core/testdata/format/inheritedMembers.md
deleted file mode 100644
index 0bf1a5f6..00000000
--- a/core/testdata/format/inheritedMembers.md
+++ /dev/null
@@ -1,26 +0,0 @@
-[test](../../index.md) / [Bar](./index.md)
-
-# Bar
-
-`class Bar : `[`Foo`](../-foo/index.md)
-
-### Constructors
-
-| [<init>](-init-.md) | `Bar()` |
-
-### Properties
-
-| [secondProp](second-prop.md) | `val secondProp: Int` |
-
-### Inherited Properties
-
-| [firstProp](../-foo/first-prop.md) | `val firstProp: Int` |
-
-### Functions
-
-| [second](second.md) | `fun second(): Unit` |
-
-### Inherited Functions
-
-| [first](../-foo/first.md) | `fun first(): Unit` |
-
diff --git a/core/testdata/format/inlineSuspendFunction.kt b/core/testdata/format/inlineSuspendFunction.kt
deleted file mode 100644
index 02b3094b..00000000
--- a/core/testdata/format/inlineSuspendFunction.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * returns 1
- */
-inline suspend fun foo(a: () -> String): Int {
- 1
-}
diff --git a/core/testdata/format/inlineSuspendFunction.md b/core/testdata/format/inlineSuspendFunction.md
deleted file mode 100644
index e109039c..00000000
--- a/core/testdata/format/inlineSuspendFunction.md
+++ /dev/null
@@ -1,8 +0,0 @@
-[test](../index.md) / [foo](./foo.md)
-
-# foo
-
-`suspend inline fun foo(a: () -> String): Int`
-
-returns 1
-
diff --git a/core/testdata/format/javaCodeInParam.java b/core/testdata/format/javaCodeInParam.java
deleted file mode 100644
index 0d1607ba..00000000
--- a/core/testdata/format/javaCodeInParam.java
+++ /dev/null
@@ -1,7 +0,0 @@
-class C {
-
- /**
- * @param par this is {@code some code} and other text
- */
- public void withParam(String par) {}
-}
diff --git a/core/testdata/format/javaCodeInParam.md b/core/testdata/format/javaCodeInParam.md
deleted file mode 100644
index 7bdf4f62..00000000
--- a/core/testdata/format/javaCodeInParam.md
+++ /dev/null
@@ -1,9 +0,0 @@
-[test](../../index.md) / [C](index.md) / [withParam](./with-param.md)
-
-# withParam
-
-`open fun withParam(par: String!): Unit`
-
-### Parameters
-
-`par` - String!: this is `some code` and other text
\ No newline at end of file
diff --git a/core/testdata/format/javaCodeLiteralTags.java b/core/testdata/format/javaCodeLiteralTags.java
deleted file mode 100644
index e71ddaa7..00000000
--- a/core/testdata/format/javaCodeLiteralTags.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * val foo = Foo.create {
- type { "ABC" }
- }
-
-foo
-
-open fun
foo(): Unit
-Deprecated: use #bar
instead
-
-
diff --git a/core/testdata/format/javaDeprecated.java b/core/testdata/format/javaDeprecated.java
deleted file mode 100644
index 9694a444..00000000
--- a/core/testdata/format/javaDeprecated.java
+++ /dev/null
@@ -1,5 +0,0 @@
-class Foo {
- /** @deprecated use {@link #bar} instead */
- public void foo() {}
- public void bar() {}
-}
diff --git a/core/testdata/format/javaLinkTag.html b/core/testdata/format/javaLinkTag.html
deleted file mode 100644
index f61673d5..00000000
--- a/core/testdata/format/javaLinkTag.html
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-Foo
-protected open class Foo
-#bar()
to do the job.Constructors
-
-
-
-
-
-
-
-
-<init>
-
-
-#bar()
to do the job.Foo()
Functions
-
-
-
-
-
diff --git a/core/testdata/format/javaLinkTag.java b/core/testdata/format/javaLinkTag.java
deleted file mode 100644
index 84f761c6..00000000
--- a/core/testdata/format/javaLinkTag.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Call {@link #bar()} to do the job.
- */
-class Foo {
- public void bar()
-}
diff --git a/core/testdata/format/javaLinkTagWithLabel.html b/core/testdata/format/javaLinkTagWithLabel.html
deleted file mode 100644
index 92c67795..00000000
--- a/core/testdata/format/javaLinkTagWithLabel.html
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
-
-bar
-
-
-open fun bar(): Unit
-
-Foo
-protected open class Foo
-this wonderful method
to do the job.Constructors
-
-
-
-
-
-
-
-
-<init>
-
-
-this wonderful method
to do the job.Foo()
Functions
-
-
-
-
-
diff --git a/core/testdata/format/javaLinkTagWithLabel.java b/core/testdata/format/javaLinkTagWithLabel.java
deleted file mode 100644
index 1db5ad70..00000000
--- a/core/testdata/format/javaLinkTagWithLabel.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Call {@link #bar() this wonderful method} to do the job.
- */
-class Foo {
- public void bar()
-}
diff --git a/core/testdata/format/javaSeeTag.html b/core/testdata/format/javaSeeTag.html
deleted file mode 100644
index dd19c56c..00000000
--- a/core/testdata/format/javaSeeTag.html
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
-
-bar
-
-
-open fun bar(): Unit
-
-Foo
-open class Foo
-
-#barConstructors
-
-
-
-
-
-
-
-
-<init>
-
-
-Foo()
Functions
-
-
-
-
-
diff --git a/core/testdata/format/javaSeeTag.java b/core/testdata/format/javaSeeTag.java
deleted file mode 100644
index 94a24606..00000000
--- a/core/testdata/format/javaSeeTag.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * @see #bar
- */
-public class Foo {
- public void bar() {}
-}
\ No newline at end of file
diff --git a/core/testdata/format/javaSpaceInAuthor.java b/core/testdata/format/javaSpaceInAuthor.java
deleted file mode 100644
index f980ae07..00000000
--- a/core/testdata/format/javaSpaceInAuthor.java
+++ /dev/null
@@ -1,5 +0,0 @@
-/**
- * @author Dmitry Jemerov
- */
-class C {
-}
\ No newline at end of file
diff --git a/core/testdata/format/javaSpaceInAuthor.md b/core/testdata/format/javaSpaceInAuthor.md
deleted file mode 100644
index fc6c53f8..00000000
--- a/core/testdata/format/javaSpaceInAuthor.md
+++ /dev/null
@@ -1,13 +0,0 @@
-[test](../../index.md) / [C](./index.md)
-
-# C
-
-`protected open class C`
-
-**Author**
-Dmitry Jemerov
-
-### Constructors
-
-| [<init>](-init-.md) | `C()` |
-
diff --git a/core/testdata/format/javadocHtml.java b/core/testdata/format/javadocHtml.java
deleted file mode 100644
index 9e77402e..00000000
--- a/core/testdata/format/javadocHtml.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * Bold
- * Strong
- * Italic
- * Emphasized
- *
-
-
-
-
-bar
-
-
-open fun bar(): Unit
Strikethrough
- * Deleted
- * Code
- * Block code
- *
- *
- * with( some ) {
- * multi = lines
- * sample()
- * }
- *
- *
- * {@code
- * with (some) {
- *
- */
-public class C {
-}
diff --git a/core/testdata/format/javadocHtml.md b/core/testdata/format/javadocHtml.md
deleted file mode 100644
index b6a03cd6..00000000
--- a/core/testdata/format/javadocHtml.md
+++ /dev/null
@@ -1,38 +0,0 @@
-[test](../../index.md) / [C](./index.md)
-
-# C
-
-`open class C`
-
-**Bold** **Strong** *Italic* *Emphasized*
-
-Paragraph
-
- ~~Strikethrough~~ ~~Deleted~~ `Code`
-
-```
-Block code
-```
-
- * List Item
-
-
-```
-
- with( some ) {
- multi = lines
- sample()
- }
- ```
-
-
-
-```
-with (some) { }
- * }
- *
}
-
- ```
-
-### Constructors
-
-| [<init>](-init-.md) | **Bold** **Strong** *Italic* *Emphasized* `C()` |
-
diff --git a/core/testdata/format/javadocOrderedList.java b/core/testdata/format/javadocOrderedList.java
deleted file mode 100644
index c32d9032..00000000
--- a/core/testdata/format/javadocOrderedList.java
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- *
- *
- */
-public class Bar {
-}
diff --git a/core/testdata/format/javadocOrderedList.md b/core/testdata/format/javadocOrderedList.md
deleted file mode 100644
index 1d94ad5b..00000000
--- a/core/testdata/format/javadocOrderedList.md
+++ /dev/null
@@ -1,17 +0,0 @@
-[test](../../index.md) / [Bar](./index.md)
-
-# Bar
-
-`open class Bar`
-
- 1. Rinse
- 2. Repeat
-
-
-### Constructors
-
-| [<init>](-init-.md) |
-1. Rinse
- 2. Repeat
-
`Bar()` |
-
diff --git a/core/testdata/format/jdkLinks.kt b/core/testdata/format/jdkLinks.kt
deleted file mode 100644
index 660fb4ce..00000000
--- a/core/testdata/format/jdkLinks.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * This is a [ClassLoader] and I can get its [ClassLoader.getResource]
- *
- * You can print something to [java.lang.System.out] now!
- */
-class C : ClassLoader {
-}
diff --git a/core/testdata/format/jdkLinks.md b/core/testdata/format/jdkLinks.md
deleted file mode 100644
index eddee485..00000000
--- a/core/testdata/format/jdkLinks.md
+++ /dev/null
@@ -1,14 +0,0 @@
-[test](../../index.md) / [C](./index.md)
-
-# C
-
-`class C : `[`ClassLoader`](https://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html)
-
-This is a [ClassLoader](https://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html) and I can get its [ClassLoader.getResource](https://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#getResource(java.lang.String))
-
-You can print something to [java.lang.System.out](https://docs.oracle.com/javase/6/docs/api/java/lang/System.html#out) now!
-
-### Constructors
-
-| [<init>](-init-.md) | This is a [ClassLoader](https://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html) and I can get its [ClassLoader.getResource](https://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#getResource(java.lang.String))`C()` |
-
diff --git a/core/testdata/format/linkWithLabel.html b/core/testdata/format/linkWithLabel.html
deleted file mode 100644
index 52dfa4a3..00000000
--- a/core/testdata/format/linkWithLabel.html
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-Bar
-class Bar
-Constructors
-
-
-
-
-
-
-
-
-<init>
-
-
-Bar()
Functions
-
-
-
-
-
diff --git a/core/testdata/format/linkWithLabel.kt b/core/testdata/format/linkWithLabel.kt
deleted file mode 100644
index 4a85c505..00000000
--- a/core/testdata/format/linkWithLabel.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Use [this method][Bar.foo] for best results.
- */
-class Bar {
- fun foo() {}
-}
diff --git a/core/testdata/format/linkWithStarProjection.html b/core/testdata/format/linkWithStarProjection.html
deleted file mode 100644
index ce9b82c6..00000000
--- a/core/testdata/format/linkWithStarProjection.html
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-foo
-
-
-fun foo(): Unit
-
-KClassLoader
-object KClassLoader
-Functions
-
-
-
-
-
diff --git a/core/testdata/format/linkWithStarProjection.kt b/core/testdata/format/linkWithStarProjection.kt
deleted file mode 100644
index 6da6c595..00000000
--- a/core/testdata/format/linkWithStarProjection.kt
+++ /dev/null
@@ -1,3 +0,0 @@
-object KClassLoader {
- fun foo(c: Enum<*>) { }
-}
diff --git a/core/testdata/format/linksInEmphasis.kt b/core/testdata/format/linksInEmphasis.kt
deleted file mode 100644
index 3e2017d2..00000000
--- a/core/testdata/format/linksInEmphasis.kt
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * An emphasised class.
- *
- * _This class [Bar] is awesome._
- *
- * _Even more awesomer is the function [Bar.foo]_
- *
- * _[Bar.hello] is also OK_
- */
-class Bar {
- fun foo() {}
- fun hello() {}
-}
diff --git a/core/testdata/format/linksInEmphasis.md b/core/testdata/format/linksInEmphasis.md
deleted file mode 100644
index 984941fa..00000000
--- a/core/testdata/format/linksInEmphasis.md
+++ /dev/null
@@ -1,23 +0,0 @@
-[test](../../index.md) / [Bar](./index.md)
-
-# Bar
-
-`class Bar`
-
-An emphasised class.
-
-*This class [Bar](./index.md) is awesome.*
-
-*Even more awesomer is the function [Bar.foo](foo.md)*
-
-*[Bar.hello](hello.md) is also OK*
-
-### Constructors
-
-| [<init>](-init-.md) | An emphasised class.`Bar()` |
-
-### Functions
-
-| [foo](foo.md) | `fun foo(): Unit` |
-| [hello](hello.md) | `fun hello(): Unit` |
-
diff --git a/core/testdata/format/linksInHeaders.kt b/core/testdata/format/linksInHeaders.kt
deleted file mode 100644
index 18efd34b..00000000
--- a/core/testdata/format/linksInHeaders.kt
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Some class with really useless documentation.
- *
- * # Beer o'clock - time to go to the [Bar]
- *
- * ## But __is [it](isitbeeroclock.com)__ really?
- *
- * ### [Bar.hello] to the [Bar.world]!
- *
- * #### _Kotlin is amazing, [Bar.none]_
- *
- * ##### We need to go [Bar.deeper]
- *
- * ###### End of the [Bar.line] - we need to go back!
- */
-class Bar {
- fun foo() {}
- fun hello() {}
- fun world() {}
- fun kotlin() {}
- fun none() {}
- fun deeper() {}
- fun line() {}
-}
diff --git a/core/testdata/format/linksInHeaders.md b/core/testdata/format/linksInHeaders.md
deleted file mode 100644
index 2f18d442..00000000
--- a/core/testdata/format/linksInHeaders.md
+++ /dev/null
@@ -1,34 +0,0 @@
-[test](../../index.md) / [Bar](./index.md)
-
-# Bar
-
-`class Bar`
-
-Some class with really useless documentation.
-
-# Beer o'clock - time to go to the [Bar](./index.md)
-
-## But **is [it](isitbeeroclock.com)** really?
-
-### [Bar.hello](hello.md) to the [Bar.world](world.md)!
-
-#### *Kotlin is amazing, [Bar.none](none.md)*
-
-##### We need to go [Bar.deeper](deeper.md)
-
-###### End of the [Bar.line](line.md) - we need to go back!
-
-### Constructors
-
-| [<init>](-init-.md) | Some class with really useless documentation.`Bar()` |
-
-### Functions
-
-| [deeper](deeper.md) | `fun deeper(): Unit` |
-| [foo](foo.md) | `fun foo(): Unit` |
-| [hello](hello.md) | `fun hello(): Unit` |
-| [kotlin](kotlin.md) | `fun kotlin(): Unit` |
-| [line](line.md) | `fun line(): Unit` |
-| [none](none.md) | `fun none(): Unit` |
-| [world](world.md) | `fun world(): Unit` |
-
diff --git a/core/testdata/format/linksInStrong.kt b/core/testdata/format/linksInStrong.kt
deleted file mode 100644
index b9e295ec..00000000
--- a/core/testdata/format/linksInStrong.kt
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * A strong class.
- *
- * __This class [Bar] is awesome.__
- *
- * __Even more awesomer is the function [Bar.foo]__
- *
- * __[Bar.hello] is also OK__
- */
-class Bar {
- fun foo() {}
- fun hello() {}
-}
diff --git a/core/testdata/format/linksInStrong.md b/core/testdata/format/linksInStrong.md
deleted file mode 100644
index d234937b..00000000
--- a/core/testdata/format/linksInStrong.md
+++ /dev/null
@@ -1,23 +0,0 @@
-[test](../../index.md) / [Bar](./index.md)
-
-# Bar
-
-`class Bar`
-
-A strong class.
-
-**This class [Bar](./index.md) is awesome.**
-
-**Even more awesomer is the function [Bar.foo](foo.md)**
-
-**[Bar.hello](hello.md) is also OK**
-
-### Constructors
-
-| [<init>](-init-.md) | A strong class.`Bar()` |
-
-### Functions
-
-| [foo](foo.md) | `fun foo(): Unit` |
-| [hello](hello.md) | `fun hello(): Unit` |
-
diff --git a/core/testdata/format/markdownInLinks.html b/core/testdata/format/markdownInLinks.html
deleted file mode 100644
index f1146ea0..00000000
--- a/core/testdata/format/markdownInLinks.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-foo
-
-
-fun foo(c: Enum<*>): Unit
-
-foo
-
-fun foo(): Unit
-
-
-
diff --git a/core/testdata/format/markdownInLinks.kt b/core/testdata/format/markdownInLinks.kt
deleted file mode 100644
index 380727ee..00000000
--- a/core/testdata/format/markdownInLinks.kt
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * [a**b**__d__ kas ](https://www.ibm.com)
- */
-fun foo() {}
diff --git a/core/testdata/format/memberExtension.kt b/core/testdata/format/memberExtension.kt
deleted file mode 100644
index 955794d1..00000000
--- a/core/testdata/format/memberExtension.kt
+++ /dev/null
@@ -1,8 +0,0 @@
-open class X
-
-class Foo : X
-
-class Bar {
- fun X.y() = ""
- fun Foo.x() = ""
-}
diff --git a/core/testdata/format/memberExtension.md b/core/testdata/format/memberExtension.md
deleted file mode 100644
index f52b46f2..00000000
--- a/core/testdata/format/memberExtension.md
+++ /dev/null
@@ -1,10 +0,0 @@
-[test](../../index.md) / [Foo](./index.md)
-
-# Foo
-
-`class Foo : `[`X`](../-x/index.md)
-
-### Constructors
-
-| [<init>](-init-.md) | `Foo()` |
-
diff --git a/core/testdata/format/multiplatform/breadcrumbsInMemberOfMemberOfGroupNode/js.kt b/core/testdata/format/multiplatform/breadcrumbsInMemberOfMemberOfGroupNode/js.kt
deleted file mode 100644
index d7fbf924..00000000
--- a/core/testdata/format/multiplatform/breadcrumbsInMemberOfMemberOfGroupNode/js.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-package pack
-
-class Some {
- fun magic() {
-
- }
-}
\ No newline at end of file
diff --git a/core/testdata/format/multiplatform/breadcrumbsInMemberOfMemberOfGroupNode/jvm.kt b/core/testdata/format/multiplatform/breadcrumbsInMemberOfMemberOfGroupNode/jvm.kt
deleted file mode 100644
index 57f36742..00000000
--- a/core/testdata/format/multiplatform/breadcrumbsInMemberOfMemberOfGroupNode/jvm.kt
+++ /dev/null
@@ -1,9 +0,0 @@
-package pack
-
-class SomeCoolJvmClass {
- fun magic() {
-
- }
-}
-
-typealias Some = SomeCoolJvmClass
\ No newline at end of file
diff --git a/core/testdata/format/multiplatform/breadcrumbsInMemberOfMemberOfGroupNode/multiplatform.md b/core/testdata/format/multiplatform/breadcrumbsInMemberOfMemberOfGroupNode/multiplatform.md
deleted file mode 100644
index d70f9d8b..00000000
--- a/core/testdata/format/multiplatform/breadcrumbsInMemberOfMemberOfGroupNode/multiplatform.md
+++ /dev/null
@@ -1,5 +0,0 @@
-[test](../../index.md) / [pack](../index.md) / [Some](index.md) / [magic](./magic.md)
-
-# magic
-
-(JS) `fun magic(): Unit`
\ No newline at end of file
diff --git a/core/testdata/format/multiplatform/groupNode/js.kt b/core/testdata/format/multiplatform/groupNode/js.kt
deleted file mode 100644
index 045f3f0d..00000000
--- a/core/testdata/format/multiplatform/groupNode/js.kt
+++ /dev/null
@@ -1,8 +0,0 @@
-package pack
-
-class Some {
-
- fun magic() {
-
- }
-}
\ No newline at end of file
diff --git a/core/testdata/format/multiplatform/groupNode/jvm.kt b/core/testdata/format/multiplatform/groupNode/jvm.kt
deleted file mode 100644
index 57f36742..00000000
--- a/core/testdata/format/multiplatform/groupNode/jvm.kt
+++ /dev/null
@@ -1,9 +0,0 @@
-package pack
-
-class SomeCoolJvmClass {
- fun magic() {
-
- }
-}
-
-typealias Some = SomeCoolJvmClass
\ No newline at end of file
diff --git a/core/testdata/format/multiplatform/groupNode/multiplatform.md b/core/testdata/format/multiplatform/groupNode/multiplatform.md
deleted file mode 100644
index d8b577ca..00000000
--- a/core/testdata/format/multiplatform/groupNode/multiplatform.md
+++ /dev/null
@@ -1,14 +0,0 @@
-[test](../../index.md) / [pack](../index.md) / [Some](./index.md)
-
-# Some
-
-(JVM) `typealias Some = SomeCoolJvmClass`(JS) `class Some`
-
-### Constructors
-
-| (JS) [<init>](-init-.md) | `Some()` |
-
-### Functions
-
-| (JS) [magic](magic.md) | `fun magic(): Unit` |
-
diff --git a/core/testdata/format/multiplatform/groupNode/multiplatform.package.md b/core/testdata/format/multiplatform/groupNode/multiplatform.package.md
deleted file mode 100644
index cf1f70f0..00000000
--- a/core/testdata/format/multiplatform/groupNode/multiplatform.package.md
+++ /dev/null
@@ -1,9 +0,0 @@
-[test](../index.md) / [pack](./index.md)
-
-## Package pack
-
-### Types
-
-| [Some](-some/index.md) | (JVM) `typealias Some = SomeCoolJvmClass`
(JS) `class Some` |
-| (JVM) [SomeCoolJvmClass](-some-cool-jvm-class/index.md) | `class SomeCoolJvmClass` |
-
diff --git a/core/testdata/format/multiplatform/implied/foo.md b/core/testdata/format/multiplatform/implied/foo.md
deleted file mode 100644
index c261df36..00000000
--- a/core/testdata/format/multiplatform/implied/foo.md
+++ /dev/null
@@ -1,24 +0,0 @@
-[test](../../index.md) / [foo](../index.md) / [Foo](./index.md)
-
-# Foo
-
-(JVM, JS) `class Foo`
-
-This is a foo.
-
-### Constructors
-
-| (JVM, JS) [<init>](-init-.md) | This is a foo.`
-
-Bar
-class Bar
-
-Constructors
-
-
-
-
-
diff --git a/core/testdata/format/orderedList.kt b/core/testdata/format/orderedList.kt
deleted file mode 100644
index 03681c7a..00000000
--- a/core/testdata/format/orderedList.kt
+++ /dev/null
@@ -1,8 +0,0 @@
-/**
- * Usage instructions:
- *
- * 1. Rinse
- * 1. Repeat
- */
-class Bar {
-}
diff --git a/core/testdata/format/overloads.html b/core/testdata/format/overloads.html
deleted file mode 100644
index 8e0693bf..00000000
--- a/core/testdata/format/overloads.html
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-<init>
-
-
-Bar()
-
-Package <root>
-Functions
-
-
-
-
-
diff --git a/core/testdata/format/overloads.kt b/core/testdata/format/overloads.kt
deleted file mode 100644
index dcd2d097..00000000
--- a/core/testdata/format/overloads.kt
+++ /dev/null
@@ -1,5 +0,0 @@
-/** Performs an action on x. */
-fun f(x: Int) { }
-
-/** Performs an action on x. */
-fun f(x: String) { }
diff --git a/core/testdata/format/overloadsWithDescription.html b/core/testdata/format/overloadsWithDescription.html
deleted file mode 100644
index 329393d1..00000000
--- a/core/testdata/format/overloadsWithDescription.html
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-f
-
-
-fun f(x: Int): Unit
-fun f(x: String): Unit
-
-f
-
-fun f(x: Int): Unit
-
-fun f(x: String): Unit
-Parameters
-x
- the value to perform the action on.
-
-f
-
-fun f(x: Int): Unit
-Parameters
-x
- the int value to perform the action on.fun f(x: String): Unit
-Parameters
-x
- the string value to perform the action on.
-
-processFiles
-
-fun <T> processFiles(processor: () -> T): List<T>
-Parameters
-processor
- function to receive context for symbol resolution and file for processing
-
-foo
-
-fun foo(): Unit
-
-
-foo
-
-fun foo(s1: String): String
-
-Returns s1 and does nothing else.
-
-quux
-
-fun quux(): Unit
-
-
fun foo(): Unit
-
-
-
-
-
-
-fun bar(): Unit
-
-
diff --git a/core/testdata/format/see.kt b/core/testdata/format/see.kt
deleted file mode 100644
index a0b153b0..00000000
--- a/core/testdata/format/see.kt
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- * @see foo
- * @see bar
- */
-fun quux() {
-}
-
-fun foo() {
-}
-
-fun bar() {
-}
\ No newline at end of file
diff --git a/core/testdata/format/shadowedExtensionFunctions.kt b/core/testdata/format/shadowedExtensionFunctions.kt
deleted file mode 100644
index 64df1ecb..00000000
--- a/core/testdata/format/shadowedExtensionFunctions.kt
+++ /dev/null
@@ -1,18 +0,0 @@
-open class Foo {
-}
-
-class Bar : Foo() {
-}
-
-fun Foo.xyzzy() {
-}
-
-fun Foo.shazam() {
-
-}
-
-fun Bar.xyzzy() {
-}
-
-fun Bar.shazam(i: Int) {
-}
diff --git a/core/testdata/format/shadowedExtensionFunctions.md b/core/testdata/format/shadowedExtensionFunctions.md
deleted file mode 100644
index 4adfda6a..00000000
--- a/core/testdata/format/shadowedExtensionFunctions.md
+++ /dev/null
@@ -1,15 +0,0 @@
-[test](../../index.md) / [Bar](./index.md)
-
-# Bar
-
-`class Bar : `[`Foo`](../-foo/index.md)
-
-### Constructors
-
-| [<init>](-init-.md) | `Bar()` |
-
-### Extension Functions
-
-| [shazam](../shazam.md) | `fun `[`Bar`](./index.md)`.shazam(i: Int): Unit`class Since1.1
-Useful
-
-<init>-Since:1.1 |
-
- Useful -Since1.1() |
-
fun f(): Unit
-Description
-code sample
-
-
-
diff --git a/core/testdata/format/tripleBackticks.kt b/core/testdata/format/tripleBackticks.kt
deleted file mode 100644
index 54dfa6d5..00000000
--- a/core/testdata/format/tripleBackticks.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-/**
- * Description
- * ```
- * code sample
- * ```
- */
-fun f() {}
diff --git a/core/testdata/format/typeAliases.kt b/core/testdata/format/typeAliases.kt
deleted file mode 100644
index 9657963e..00000000
--- a/core/testdata/format/typeAliases.kt
+++ /dev/null
@@ -1,27 +0,0 @@
-
-class A
-class B
-class Cclass Bar : Foo
-
-<init>- |
-
-Bar() |
-
fun foo(): Unit
-This is emphasized text but text_with_underscores has to preserve the underscores. -Single stars embedded in a word like Embedded*Star have to be preserved as well.
- - diff --git a/core/testdata/format/uninterpretedEmphasisCharacters.kt b/core/testdata/format/uninterpretedEmphasisCharacters.kt deleted file mode 100644 index 711bb567..00000000 --- a/core/testdata/format/uninterpretedEmphasisCharacters.kt +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This is _emphasized text_ but text_with_underscores has to preserve the underscores. - * Single stars embedded in a word like Embedded*Star have to be preserved as well. - */ -fun foo() {} \ No newline at end of file diff --git a/core/testdata/format/unorderedLists.kt b/core/testdata/format/unorderedLists.kt deleted file mode 100644 index a594b89b..00000000 --- a/core/testdata/format/unorderedLists.kt +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Usage summary: - * - * - Rinse - * - Repeat - * - * Usage instructions: - * - * - [Bar.rinse] to rinse - * - Alter any rinse options _(optional)_ - * - To repeat; [Bar.repeat] - * - Can reconfigure options: - * - Soap - * - Elbow Grease - * - Bleach - * - * Rinse options: - * - * - [Bar.useSoap] - * - _recommended_ - * - * - [Bar.useElbowGrease] - * - _warning: requires effort_ - * - * - [Bar.useBleach] - * - __use with caution__ - * - */ -class Bar { - fun rinse() = Unit - fun repeat() = Unit - - var useSoap = false - var useElbowGrease = false - var useBleach = false -} diff --git a/core/testdata/format/unorderedLists.md b/core/testdata/format/unorderedLists.md deleted file mode 100644 index 1beb2c64..00000000 --- a/core/testdata/format/unorderedLists.md +++ /dev/null @@ -1,47 +0,0 @@ -[test](../../index.md) / [Bar](./index.md) - -# Bar - -`class Bar` - -Usage summary: - -* Rinse -* Repeat - -Usage instructions: - -* [Bar.rinse](rinse.md) to rinse -* Alter any rinse options *(optional)* -* To repeat; [Bar.repeat](repeat.md) - * Can reconfigure options: - * Soap - * Elbow Grease - * Bleach - -Rinse options: - -* [Bar.useSoap](use-soap.md) - * *recommended* - -* [Bar.useElbowGrease](use-elbow-grease.md) - * *warning: requires effort* - -* [Bar.useBleach](use-bleach.md) - * **use with caution** - -### Constructors - -| [<init>](-init-.md) | Usage summary:`Bar()` | - -### Properties - -| [useBleach](use-bleach.md) | `var useBleach: Boolean` | -| [useElbowGrease](use-elbow-grease.md) | `var useElbowGrease: Boolean` | -| [useSoap](use-soap.md) | `var useSoap: Boolean` | - -### Functions - -| [repeat](repeat.md) | `fun repeat(): Unit` | -| [rinse](rinse.md) | `fun rinse(): Unit` | - diff --git a/core/testdata/format/varargsFunction.kt b/core/testdata/format/varargsFunction.kt deleted file mode 100644 index deea127b..00000000 --- a/core/testdata/format/varargsFunction.kt +++ /dev/null @@ -1 +0,0 @@ -fun f(vararg s: String) {} diff --git a/core/testdata/format/varargsFunction.md b/core/testdata/format/varargsFunction.md deleted file mode 100644 index b23760f0..00000000 --- a/core/testdata/format/varargsFunction.md +++ /dev/null @@ -1,5 +0,0 @@ -[test](../index.md) / [f](./f.md) - -# f - -`fun f(vararg s: String): Unit` \ No newline at end of file diff --git a/core/testdata/format/website-html/dataTags/jre7.kt b/core/testdata/format/website-html/dataTags/jre7.kt deleted file mode 100644 index d21b8d7b..00000000 --- a/core/testdata/format/website-html/dataTags/jre7.kt +++ /dev/null @@ -1,11 +0,0 @@ -package foo - -@SinceKotlin("1.1") -fun jre7New() {} - -fun jre7() {} - -fun shared() {} - -@SinceKotlin("1.1") -fun sharedNew() {} \ No newline at end of file diff --git a/core/testdata/format/website-html/dataTags/js.kt b/core/testdata/format/website-html/dataTags/js.kt deleted file mode 100644 index b22d7088..00000000 --- a/core/testdata/format/website-html/dataTags/js.kt +++ /dev/null @@ -1,11 +0,0 @@ -package foo - -@SinceKotlin("1.1") -fun jsNew() {} - -fun js() {} - -fun shared() {} - -@SinceKotlin("1.1") -fun sharedNew() {} \ No newline at end of file diff --git a/core/testdata/format/website-html/dataTags/jvm.kt b/core/testdata/format/website-html/dataTags/jvm.kt deleted file mode 100644 index 02d04226..00000000 --- a/core/testdata/format/website-html/dataTags/jvm.kt +++ /dev/null @@ -1,11 +0,0 @@ -package foo - -@SinceKotlin("1.1") -fun jvmNew() {} - -fun jvm() {} - -fun shared() {} - -@SinceKotlin("1.1") -fun sharedNew() {} \ No newline at end of file diff --git a/core/testdata/format/website-html/dataTags/multiplatform.package.html b/core/testdata/format/website-html/dataTags/multiplatform.package.html deleted file mode 100644 index 99f0b7a2..00000000 --- a/core/testdata/format/website-html/dataTags/multiplatform.package.html +++ /dev/null @@ -1,74 +0,0 @@ - -fun jre7(): Unit
fun jre7New(): Unit
fun js(): Unit
fun jsNew(): Unit
fun jvm(): Unit
fun jvmNew(): Unit
fun shared(): Unit
fun sharedNew(): Unit
Some()
fun magic(): Unit
typealias Some = SomeCoolJvmClass
class Some
class SomeCoolJvmClass
fun foo(): Unit
import some.*
-
-fun main(args: Array<String>) {
-//sampleStart
-
-//sampleEnd
-}
fun foo(): Unit
import same.*
-import some.*
-
-fun main(args: Array<String>) {
-//sampleStart
-
-//sampleEnd
-}
fun foo(): Unit
-
-fun main(args: Array<String>) {
-//sampleStart
-val words = listOf("a", "abc", "ab", "def", "abcd")
-val byLength = words.groupBy { it.length }
-
-println(byLength.keys) // [1, 3, 2, 4]
-println(byLength.values) // [[a], [abc, def], [ab], [abcd]]
-
-val mutableByLength: MutableMap<Int, MutableList<String>> = words.groupByTo(mutableMapOf()) { it.length }
-// same content as in byLength map, but the map is mutable
-println("mutableByLength == byLength is ${mutableByLength == byLength}") // true
-//sampleEnd
-}
fun magic(spell: String): Int
-spell
- The text of spell, often distributed on scrolls
Return Spell ID for future casts
-fun magic(spell: Int): Int
-spell
- Spell ID of previously casted spell
Return Spell ID for future casts
-fun Foo.indexOf(
char: Char,
startIndex: Int = 0,
ignoreCase: Boolean = false
): Int
Returns the index within this string of the first occurrence of the specified character, starting from the specified startIndex.
-
-ignoreCase
- true
to ignore character case when matching a character. By default false
.
Returns An index of the first occurrence of char or -1 if none is found.
-fun foo(): Int
Groups elements of the original sequence by the key returned by the given keySelector function -applied to each element and returns a map where each group key is associated with a list of corresponding elements.
-
-
-fun main(args: Array<String>) {
-//sampleStart
-if (true) {
- println(property)
-}
-//sampleEnd
-}
fun a(): String
import java.io.FileNotFoundException
-import java.io.File
-
-fun main(args: Array<String>) {
-//sampleStart
-println(a()) // Hello, Work
-println("a() == b() is ${a() == b()}") // true
-// A eq B
-println("a() == b() is ${a() == b()}") // true
-// readSomeFile(File("some.txt")) // reading file now will fail
-// readSomeFile(File("some.txt")) // will fail with FileNotFoundException
-
-// readSomeFile(File("some.txt")) // will fail
-
-fun indented() {
- // A neq B
- println("a() != b() is ${a() != b()}") // false
-}
-//sampleEnd
-}
fun foo(): Unit
fun foo(): Unit
fun foo(): Unit
fun foo(): Int
fun foo(i: Int): Int
fun a(): String
-jre7 - | -
-fun jre7(): Unit |
-
-jre7New - | -
-fun jre7New(): Unit |
-
-js - | -
-fun js(): Unit |
-
-jsNew - | -
-fun jsNew(): Unit |
-
-jvm - | -
-fun jvm(): Unit |
-
-jvmNew - | -
-fun jvmNew(): Unit |
-
-shared - | -
-fun shared(): Unit |
-
-sharedNew - | -
-fun sharedNew(): Unit |
-
typealias Some = SomeCoolJvmClass
class Some
-<init> - | -
-Some() |
-
-magic - | -
-fun magic(): Unit |
-
-Some - | -
-class Some |
-
-SomeCoolJvmClass - | -
-class SomeCoolJvmClass |
-
-Some - | -
-typealias Some = SomeCoolJvmClass |
-
fun magic(spell: String): Int
spell
- The text of spell, often distributed on scrolls
-
-**Return**
-Spell ID for future casts
-
-fun magic(spell: Int): Int
spell
- Spell ID of previously casted spell
-
-**Return**
-Spell ID for future casts
-
-fun Foo.indexOf(
char: Char,
startIndex: Int = 0,
ignoreCase: Boolean = false
): Int
ignoreCase
- true
to ignore character case when matching a character. By default false
.
-
-**Returns**
-An index of the first occurrence of char or -1 if none is found.
-
diff --git a/core/testdata/format/website/sample.kt b/core/testdata/format/website/sample.kt
deleted file mode 100644
index a664c2f5..00000000
--- a/core/testdata/format/website/sample.kt
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Groups elements of the original sequence by the key returned by the given [keySelector] function
- * applied to each element and returns a map where each group key is associated with a list of corresponding elements.
- * @sample example1
- */
-fun foo(): Int {
- return 0
-}
-
-fun foo(i: Int): Int {
- return 1
-}
-
-fun example1(node: String) = if (true) {
- println(property)
-}
diff --git a/core/testdata/format/website/sample.md b/core/testdata/format/website/sample.md
deleted file mode 100644
index 7c11790f..00000000
--- a/core/testdata/format/website/sample.md
+++ /dev/null
@@ -1,29 +0,0 @@
----
-title: foo - test
-layout: api
----
-
-
-
-# foo
-
-fun foo(): Int
fun foo(i: Int): Int
` tags? Can a list be partially "loose" and partially - "tight"? What should we do with a list like this? - - ``` markdown - 1. one - - 2. two - 3. three - ``` - - Or this? - - ``` markdown - 1. one - - a - - - b - 2. two - ``` - - (There are some relevant comments by John Gruber - [here](https://article.gmane.org/gmane.text.markdown.general/2554).) - -5. Can list markers be indented? Can ordered list markers be right-aligned? - - ``` markdown - 8. item 1 - 9. item 2 - 10. item 2a - ``` - -6. Is this one list with a horizontal rule in its second item, - or two lists separated by a horizontal rule? - - ``` markdown - * a - * * * * * - * b - ``` - -7. When list markers change from numbers to bullets, do we have - two lists or one? (The Markdown syntax description suggests two, - but the perl scripts and many other implementations produce one.) - - ``` markdown - 1. fee - 2. fie - - foe - - fum - ``` - -8. What are the precedence rules for the markers of inline structure? - For example, is the following a valid link, or does the code span - take precedence ? - - ``` markdown - [a backtick (`)](/url) and [another backtick (`)](/url). - ``` - -9. What are the precedence rules for markers of emphasis and strong - emphasis? For example, how should the following be parsed? - - ``` markdown - *foo *bar* baz* - ``` - -10. What are the precedence rules between block-level and inline-level - structure? For example, how should the following be parsed? - - ``` markdown - - `a long code span can contain a hyphen like this - - and it can screw things up` - ``` - -11. Can list items include headers? (`Markdown.pl` does not allow this, - but headers can occur in blockquotes.) - - ``` markdown - - # Heading - ``` - -12. Can link references be defined inside block quotes or list items? - - ``` markdown - > Blockquote [foo]. - > - > [foo]: /url - ``` - -13. If there are multiple definitions for the same reference, which takes - precedence? - - ``` markdown - [foo]: /url1 - [foo]: /url2 - - [foo][] - ``` - -In the absence of a spec, early implementers consulted `Markdown.pl` -to resolve these ambiguities. But `Markdown.pl` was quite buggy, and -gave manifestly bad results in many cases, so it was not a -satisfactory replacement for a spec. - -Because there is no unambiguous spec, implementations have diverged -considerably. As a result, users are often surprised to find that -a document that renders one way on one system (say, a github wiki) -renders differently on another (say, converting to docbook using -pandoc). To make matters worse, because nothing in Markdown counts -as a "syntax error," the divergence often isn't discovered right away. - -## About this document - -This document attempts to specify Markdown syntax unambiguously. -It contains many examples with side-by-side Markdown and -HTML. These are intended to double as conformance tests. An -accompanying script `runtests.pl` can be used to run the tests -against any Markdown program: - - perl runtests.pl spec.txt PROGRAM - -Since this document describes how Markdown is to be parsed into -an abstract syntax tree, it would have made sense to use an abstract -representation of the syntax tree instead of HTML. But HTML is capable -of representing the structural distinctions we need to make, and the -choice of HTML for the tests makes it possible to run the tests against -an implementation without writing an abstract syntax tree renderer. - -This document is generated from a text file, `spec.txt`, written -in Markdown with a small extension for the side-by-side tests. -The script `spec2md.pl` can be used to turn `spec.txt` into pandoc -Markdown, which can then be converted into other formats. - -In the examples, the `→` character is used to represent tabs. - -# Preprocessing - -A [line](#line) -is a sequence of zero or more characters followed by a line -ending (CR, LF, or CRLF) or by the end of -file. - -This spec does not specify an encoding; it thinks of lines as composed -of characters rather than bytes. A conforming parser may be limited -to a certain encoding. - -Tabs in lines are expanded to spaces, with a tab stop of 4 characters: - -. -→foo→baz→→bim -. -
foo baz bim
-
-.
-
-.
- a→a
- ὐ→a
-.
-a a
-ὐ a
-
-.
-
-Line endings are replaced by newline characters (LF).
-
-A line containing no characters, or a line containing only spaces (after
-tab expansion), is called a [blank line](#blank-line).
-
-
-# Blocks and inlines
-
-We can think of a document as a sequence of [blocks](#block)---structural elements like paragraphs, block quotations,
-lists, headers, rules, and code blocks. Blocks can contain other
-blocks, or they can contain [inline](#inline) content:
-words, spaces, links, emphasized text, images, and inline code.
-
-## Precedence
-
-Indicators of block structure always take precedence over indicators
-of inline structure. So, for example, the following is a list with
-two items, not a list with one item containing a code span:
-
-.
-- `one
-- two`
-.
-+++
-. - -. -=== -. -===
-. - -Not enough characters: - -. --- -** -__ -. --- -** -__
-. - -One to three spaces indent are allowed: - -. - *** - *** - *** -. -***
-
-.
-
-.
-Foo
- ***
-.
-Foo -***
-. - -More than three characters may be used: - -. -_____________________________________ -. -_ _ _ _ a
-a------
-. - -It is required that all of the non-space characters be the same. -So, this is not a horizontal rule: - -. - *-* -. --
-. - -Horizontal rules do not need blank lines before or after: - -. -- foo -*** -- bar -. -Foo
-bar
-. - -Note, however, that this is a setext header, not a paragraph followed -by a horizontal rule: - -. -Foo ---- -bar -. -bar
-. - -When both a horizontal rule and a list item are possible -interpretations of a line, the horizontal rule is preferred: - -. -* Foo -* * * -* Bar -. -####### foo
-. - -A space is required between the `#` characters and the header's -contents. Note that many implementations currently do not require -the space. However, the space was required by the [original ATX -implementation](https://www.aaronsw.com/2002/atx/atx.py), and it helps -prevent things like the following from being parsed as headers: - -. -#5 bolt -. -#5 bolt
-. - -This is not a header, because the first `#` is escaped: - -. -\## foo -. -## foo
-. - -Contents are parsed as inlines: - -. -# foo *bar* \*baz\* -. -# foo
-
-.
-
-.
-foo
- # bar
-.
-foo -# bar
-. - -A closing sequence of `#` characters is optional: - -. -## foo ## - ### bar ### -. -Foo bar
-Bar foo
-. - -ATX headers can be empty: - -. -## -# -### ### -. - - - -. - -## Setext headers - -A [setext header](#setext-header) -consists of a line of text, containing at least one nonspace character, -with no more than 3 spaces indentation, followed by a [setext header -underline](#setext-header-underline). A [setext header -underline](#setext-header-underline) -is a sequence of `=` characters or a sequence of `-` characters, with no -more than 3 spaces indentation and any number of trailing -spaces. The header is a level 1 header if `=` characters are used, and -a level 2 header if `-` characters are used. The contents of the header -are the result of parsing the first line as Markdown inline content. - -In general, a setext header need not be preceded or followed by a -blank line. However, it cannot interrupt a paragraph, so when a -setext header comes after a paragraph, a blank line is needed between -them. - -Simple examples: - -. -Foo *bar* -========= - -Foo *bar* ---------- -. -Foo
----
-
-Foo
-
-Foo ----
-. - -The setext header underline cannot contain internal spaces: - -. -Foo -= = - -Foo ---- - -. -Foo -= =
-Foo
-`
-of dashes"/>
-. - -The setext header underline cannot be a lazy line: - -. -> Foo ---- -. ---Foo
-
Foo -Bar
-Foo -Bar -===
-. - -But in general a blank line is not required before or after: - -. ---- -Foo ---- -Bar ---- -Baz -. -Baz
-. - -Setext headers cannot be empty: - -. - -==== -. -====
-. - - -## Indented code blocks - -An [indented code block](#indented-code-block) - is composed of one or more -[indented chunks](#indented-chunk) separated by blank lines. -An [indented chunk](#indented-chunk) -is a sequence of non-blank lines, each indented four or more -spaces. An indented code block cannot interrupt a paragraph, so -if it occurs before or after a paragraph, there must be an -intervening blank line. The contents of the code block are -the literal contents of the lines, including trailing newlines, -minus four spaces of indentation. An indented code block has no -attributes. - -. - a simple - indented code block -. -a simple
- indented code block
-
-.
-
-The contents are literal text, and do not get parsed as Markdown:
-
-.
-
- *hi*
-
- - one
-.
-<a/>
-*hi*
-
-- one
-
-.
-
-Here we have three chunks separated by blank lines:
-
-.
- chunk1
-
- chunk2
-
-
-
- chunk3
-.
-chunk1
-
-chunk2
-
-
-
-chunk3
-
-.
-
-Any initial spaces beyond four will be included in the content, even
-in interior blank lines:
-
-.
- chunk1
-
- chunk2
-.
-chunk1
-
- chunk2
-
-.
-
-An indented code block cannot interrupt a paragraph. (This
-allows hanging indents and the like.)
-
-.
-Foo
- bar
-
-.
-Foo -bar
-. - -However, any non-blank line with fewer than four leading spaces ends -the code block immediately. So a paragraph may occur immediately -after indented code: - -. - foo -bar -. -foo
-
-bar
-. - -And indented code can occur immediately before and after other kinds of -blocks: - -. -# Header - foo -Header ------- - foo ----- -. -foo
-
-foo
-
- foo
-bar
-
-.
-
-Blank lines preceding or following an indented code block
-are not included in it:
-
-.
-
-
- foo
-
-
-.
-foo
-
-.
-
-Trailing spaces are included in the code block's content:
-
-.
- foo
-.
-foo
-
-.
-
-
-## Fenced code blocks
-
-A [code fence](#code-fence) is a sequence
-of at least three consecutive backtick characters (`` ` ``) or
-tildes (`~`). (Tildes and backticks cannot be mixed.)
-A [fenced code block](#fenced-code-block)
-begins with a code fence, indented no more than three spaces.
-
-The line with the opening code fence may optionally contain some text
-following the code fence; this is trimmed of leading and trailing
-spaces and called the [info string](#info-string).
- The info string may not contain any backtick
-characters. (The reason for this restriction is that otherwise
-some inline code would be incorrectly interpreted as the
-beginning of a fenced code block.)
-
-The content of the code block consists of all subsequent lines, until
-a closing [code fence](#code-fence) of the same type as the code block
-began with (backticks or tildes), and with at least as many backticks
-or tildes as the opening code fence. If the leading code fence is
-indented N spaces, then up to N spaces of indentation are removed from
-each line of the content (if present). (If a content line is not
-indented, it is preserved unchanged. If it is indented less than N
-spaces, all of the indentation is removed.)
-
-The closing code fence may be indented up to three spaces, and may be
-followed only by spaces, which are ignored. If the end of the
-containing block (or document) is reached and no closing code fence
-has been found, the code block contains all of the lines after the
-opening code fence until the end of the containing block (or
-document). (An alternative spec would require backtracking in the
-event that a closing code fence is not found. But this makes parsing
-much less efficient, and there seems to be no real down side to the
-behavior described here.)
-
-A fenced code block may interrupt a paragraph, and does not require
-a blank line either before or after.
-
-The content of a code fence is treated as literal text, not parsed
-as inlines. The first word of the info string is typically used to
-specify the language of the code sample, and rendered in the `class`
-attribute of the `code` tag. However, this spec does not mandate any
-particular treatment of the info string.
-
-Here is a simple example with backticks:
-
-.
-```
-<
- >
-```
-.
-<
- >
-
-.
-
-With tildes:
-
-.
-~~~
-<
- >
-~~~
-.
-<
- >
-
-.
-
-The closing code fence must use the same character as the opening
-fence:
-
-.
-```
-aaa
-~~~
-```
-.
-aaa
-~~~
-
-.
-
-.
-~~~
-aaa
-```
-~~~
-.
-aaa
-```
-
-.
-
-The closing code fence must be at least as long as the opening fence:
-
-.
-````
-aaa
-```
-``````
-.
-aaa
-```
-
-.
-
-.
-~~~~
-aaa
-~~~
-~~~~
-.
-aaa
-~~~
-
-.
-
-Unclosed code blocks are closed by the end of the document:
-
-.
-```
-.
-
-.
-
-.
-`````
-
-```
-aaa
-.
-
-```
-aaa
-
-.
-
-A code block can have all empty lines as its content:
-
-.
-```
-
-
-```
-.
-
-
-
-.
-
-A code block can be empty:
-
-.
-```
-```
-.
-
-.
-
-Fences can be indented. If the opening fence is indented,
-content lines will have equivalent opening indentation removed,
-if present:
-
-.
- ```
- aaa
-aaa
-```
-.
-aaa
-aaa
-
-.
-
-.
- ```
-aaa
- aaa
-aaa
- ```
-.
-aaa
-aaa
-aaa
-
-.
-
-.
- ```
- aaa
- aaa
- aaa
- ```
-.
-aaa
- aaa
-aaa
-
-.
-
-Four spaces indentation produces an indented code block:
-
-.
- ```
- aaa
- ```
-.
-```
-aaa
-```
-
-.
-
-Code fences (opening and closing) cannot contain internal spaces:
-
-.
-``` ```
-aaa
-.
-
-aaa
aaa
-~~~ ~~
-
-.
-
-Fenced code blocks can interrupt paragraphs, and can be followed
-directly by paragraphs, without a blank line between:
-
-.
-foo
-```
-bar
-```
-baz
-.
-foo
-bar
-
-baz
-. - -Other blocks can also occur before and after fenced code blocks -without an intervening blank line: - -. -foo ---- -~~~ -bar -~~~ -# baz -. -bar
-
-def foo(x)
- return 3
-end
-
-.
-
-.
-~~~~ ruby startline=3 $%@#$
-def foo(x)
- return 3
-end
-~~~~~~~
-.
-def foo(x)
- return 3
-end
-
-.
-
-.
-````;
-````
-.
-
-.
-
-Info strings for backtick code blocks cannot contain backticks:
-
-.
-``` aa ```
-foo
-.
-aa
-foo
``` aaa
-
-.
-
-
-## HTML blocks
-
-An [HTML block tag](#html-block-tag) is
-an [open tag](#open-tag) or [closing tag](#closing-tag) whose tag
-name is one of the following (case-insensitive):
-`article`, `header`, `aside`, `hgroup`, `blockquote`, `hr`, `iframe`,
-`body`, `li`, `map`, `button`, `object`, `canvas`, `ol`, `caption`,
-`output`, `col`, `p`, `colgroup`, `pre`, `dd`, `progress`, `div`,
-`section`, `dl`, `table`, `td`, `dt`, `tbody`, `embed`, `textarea`,
-`fieldset`, `tfoot`, `figcaption`, `th`, `figure`, `thead`, `footer`,
-`footer`, `tr`, `form`, `ul`, `h1`, `h2`, `h3`, `h4`, `h5`, `h6`,
-`video`, `script`, `style`.
-
-An [HTML block](#html-block) begins with an
-[HTML block tag](#html-block-tag), [HTML comment](#html-comment),
-[processing instruction](#processing-instruction),
-[declaration](#declaration), or [CDATA section](#cdata-section).
-It ends when a [blank line](#blank-line) or the end of the
-input is encountered. The initial line may be indented up to three
-spaces, and subsequent lines may have any indentation. The contents
-of the HTML block are interpreted as raw HTML, and will not be escaped
-in HTML output.
-
-Some simple examples:
-
-.
-- hi - | -
- hi - | -
okay.
-. - -. -Markdown
-<!-- foo -->
-
-.
-
-An HTML block can interrupt a paragraph, and need not be preceded
-by a blank line.
-
-.
-Foo
-Foo
-