diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-09-19 22:25:27 +0300 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-09-19 22:25:27 +0300 |
commit | 455d74a6a6245969ebd7ec20071b691ed20a2628 (patch) | |
tree | 601e80982ddc289d1745a5570347a15512f4fe7d /src/Formats/MarkdownFormatService.kt | |
parent | ff0c8d7514742b505acff2f2ba51dc21aedbd949 (diff) | |
download | dokka-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.kt | 10 |
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`" } |