From 792ae5c4099c7a37815888cd1313404375453eea Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 31 Mar 2016 21:04:27 +0200 Subject: Don't lose line breaks in code blocks. Resolves #54 --- core/testdata/format/codeBlock.kt | 13 +++++++++++++ core/testdata/format/codeBlock.md | 31 +++++++++++++++++++++++++++++++ core/testdata/format/javadocHtml.md | 2 +- 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 core/testdata/format/codeBlock.kt create mode 100644 core/testdata/format/codeBlock.md (limited to 'core/testdata/format') diff --git a/core/testdata/format/codeBlock.kt b/core/testdata/format/codeBlock.kt new file mode 100644 index 00000000..e3fa27d2 --- /dev/null +++ b/core/testdata/format/codeBlock.kt @@ -0,0 +1,13 @@ +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 diff --git a/core/testdata/format/codeBlock.md b/core/testdata/format/codeBlock.md new file mode 100644 index 00000000..08710390 --- /dev/null +++ b/core/testdata/format/codeBlock.md @@ -0,0 +1,31 @@ +[test](test/index) / [Throws](test/-throws/index) + + +# 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>](test/-throws/-init-) | `Throws()` +This annotation indicates what exceptions should be declared by a function when compiled to a JVM method. + + | + diff --git a/core/testdata/format/javadocHtml.md b/core/testdata/format/javadocHtml.md index db71cc3b..3e92441b 100644 --- a/core/testdata/format/javadocHtml.md +++ b/core/testdata/format/javadocHtml.md @@ -9,7 +9,7 @@ Paragraph ~~Strikethrough~~ ~~Deleted~~ `Code` -``` +``` Block code ``` -- cgit