aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/MarkdownFormatService.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-10-13 13:38:40 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-10-13 13:38:40 +0400
commit9f0ff55b5f126c31b6d8f3cd28907e5b87601e28 (patch)
tree1d21012d9a337df969a2d8f4ca22d521e26f0207 /src/Formats/MarkdownFormatService.kt
parentb3f588ce1d9e6d72b17c1e359008ed90286b1236 (diff)
downloaddokka-9f0ff55b5f126c31b6d8f3cd28907e5b87601e28.tar.gz
dokka-9f0ff55b5f126c31b6d8f3cd28907e5b87601e28.tar.bz2
dokka-9f0ff55b5f126c31b6d8f3cd28907e5b87601e28.zip
Parse and format inline code, fix strong & emph formatting.
Diffstat (limited to 'src/Formats/MarkdownFormatService.kt')
-rw-r--r--src/Formats/MarkdownFormatService.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Formats/MarkdownFormatService.kt b/src/Formats/MarkdownFormatService.kt
index a835a673..54298e2a 100644
--- a/src/Formats/MarkdownFormatService.kt
+++ b/src/Formats/MarkdownFormatService.kt
@@ -30,10 +30,14 @@ public open class MarkdownFormatService(locationService: LocationService,
return "`$code`"
}
- override public fun formatBold(text: String): String {
+ override public fun formatStrong(text: String): String {
return "**$text**"
}
+ override fun formatEmphasis(text: String): String {
+ return "*$text*"
+ }
+
override public fun formatLink(text: String, location: Location): String {
return "[$text](${location.path})"
}