diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-06 16:41:39 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-06 16:41:39 +0100 |
commit | b78e3bb6c7d689bc1650088096461e687ee6441f (patch) | |
tree | 176944af6f9042a44a172d08485d236b64ffb465 /test | |
parent | 0e76eed8d9fee675542d35f525ff9e8ab6408857 (diff) | |
download | dokka-b78e3bb6c7d689bc1650088096461e687ee6441f.tar.gz dokka-b78e3bb6c7d689bc1650088096461e687ee6441f.tar.bz2 dokka-b78e3bb6c7d689bc1650088096461e687ee6441f.zip |
handle code spans in markdown
Diffstat (limited to 'test')
-rw-r--r-- | test/data/format/codeSpan.html | 13 | ||||
-rw-r--r-- | test/data/format/codeSpan.kt | 4 | ||||
-rw-r--r-- | test/src/format/HtmlFormatTest.kt | 6 |
3 files changed, 23 insertions, 0 deletions
diff --git a/test/data/format/codeSpan.html b/test/data/format/codeSpan.html new file mode 100644 index 00000000..37bb62f0 --- /dev/null +++ b/test/data/format/codeSpan.html @@ -0,0 +1,13 @@ +<HTML> +<HEAD> +<title>test / foo</title> +</HEAD> +<BODY> +<a href="out.html">test</a> / <a href="out.html"></a> / <a href="out.html">foo</a><br/> +<br/> +<h1>foo</h1> +<pre><code><span class="keyword">fun </span><span class="identifier">foo</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></pre><p>This is a <code>code span</code>.</p> +<br/> +<br/> +</BODY> +</HTML> diff --git a/test/data/format/codeSpan.kt b/test/data/format/codeSpan.kt new file mode 100644 index 00000000..645f454a --- /dev/null +++ b/test/data/format/codeSpan.kt @@ -0,0 +1,4 @@ +/** + * This is a `code span`. + */ +fun foo() {}
\ No newline at end of file diff --git a/test/src/format/HtmlFormatTest.kt b/test/src/format/HtmlFormatTest.kt index dfecb4d4..0170d148 100644 --- a/test/src/format/HtmlFormatTest.kt +++ b/test/src/format/HtmlFormatTest.kt @@ -39,4 +39,10 @@ public class HtmlFormatTest { htmlService.appendNodes(tempLocation, output, model.members.single().members) } } + + Test fun codeSpan() { + verifyOutput("test/data/format/codeSpan.kt", ".html") { model, output -> + htmlService.appendNodes(tempLocation, output, model.members.single().members) + } + } } |