From 03d0fd4e5a92ef80a17703ac0ed7e69b3bb95247 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Mon, 14 Jul 2014 16:08:17 +0400 Subject: Render signature with markdown code --- src/Formats/MarkdownFormatService.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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("|------|-----------|---------|") -- cgit