From 455d74a6a6245969ebd7ec20071b691ed20a2628 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Fri, 19 Sep 2014 22:25:27 +0300 Subject: Convert content to RichString and establish resolution service for links. --- src/Formats/MarkdownFormatService.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/Formats/MarkdownFormatService.kt') 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`" } -- cgit