diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-14 16:08:17 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-14 16:08:17 +0400 |
commit | 03d0fd4e5a92ef80a17703ac0ed7e69b3bb95247 (patch) | |
tree | a54fcba4c3e437f2f871ac60c4ccd6dcd3af42d2 /src | |
parent | f3375a48e593a78faaa167f46cef02c18c1160bb (diff) | |
download | dokka-03d0fd4e5a92ef80a17703ac0ed7e69b3bb95247.tar.gz dokka-03d0fd4e5a92ef80a17703ac0ed7e69b3bb95247.tar.bz2 dokka-03d0fd4e5a92ef80a17703ac0ed7e69b3bb95247.zip |
Render signature with markdown code
Diffstat (limited to 'src')
-rw-r--r-- | src/Formats/MarkdownFormatService.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Formats/MarkdownFormatService.kt b/src/Formats/MarkdownFormatService.kt index 032667dd..27ebb8ce 100644 --- a/src/Formats/MarkdownFormatService.kt +++ b/src/Formats/MarkdownFormatService.kt @@ -7,9 +7,10 @@ public class MarkdownFormatService(val locationService: LocationService, with (to) { appendln(node.path.map { "[${it.name}](${locationService.relativeLocation(node, it, extension)})" }.joinToString(" / ")) appendln() - append("# ") + appendln("# ${node.name}") + appendln("```") appendln(signatureGenerator.render(node)) - appendln() + appendln("```") appendln(node.doc.summary) appendln() for (section in node.doc.sections) { @@ -18,7 +19,6 @@ public class MarkdownFormatService(val locationService: LocationService, appendln(section.text) } - appendln("### Members") appendln("| Name | Signature | Summary |") appendln("|------|-----------|---------|") |