aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/MarkdownFormatService.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-09-19 22:25:27 +0300
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-09-19 22:25:27 +0300
commit455d74a6a6245969ebd7ec20071b691ed20a2628 (patch)
tree601e80982ddc289d1745a5570347a15512f4fe7d /src/Formats/MarkdownFormatService.kt
parentff0c8d7514742b505acff2f2ba51dc21aedbd949 (diff)
downloaddokka-455d74a6a6245969ebd7ec20071b691ed20a2628.tar.gz
dokka-455d74a6a6245969ebd7ec20071b691ed20a2628.tar.bz2
dokka-455d74a6a6245969ebd7ec20071b691ed20a2628.zip
Convert content to RichString and establish resolution service for links.
Diffstat (limited to 'src/Formats/MarkdownFormatService.kt')
-rw-r--r--src/Formats/MarkdownFormatService.kt10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Formats/MarkdownFormatService.kt b/src/Formats/MarkdownFormatService.kt
index 60e38290..d7530a25 100644
--- a/src/Formats/MarkdownFormatService.kt
+++ b/src/Formats/MarkdownFormatService.kt
@@ -1,8 +1,10 @@
package org.jetbrains.dokka
-public open class MarkdownFormatService(locationService: LocationService, signatureGenerator: LanguageService)
-: StructuredFormatService(locationService, signatureGenerator) {
+public open class MarkdownFormatService(locationService: LocationService,
+ resolutionService: ResolutionService,
+ signatureGenerator: LanguageService)
+: StructuredFormatService(locationService, resolutionService, signatureGenerator) {
override val extension: String = "md"
@@ -14,6 +16,10 @@ public open class MarkdownFormatService(locationService: LocationService, signat
return text.htmlEscape()
}
+ override public fun formatText(text: RichString): String {
+ return text.toString().htmlEscape()
+ }
+
override public fun formatCode(code: String): String {
return "`$code`"
}