diff options
Diffstat (limited to 'src/Formats/KotlinWebsiteFormatService.kt')
-rw-r--r-- | src/Formats/KotlinWebsiteFormatService.kt | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Formats/KotlinWebsiteFormatService.kt b/src/Formats/KotlinWebsiteFormatService.kt index 3ded2d6d..a5e9c022 100644 --- a/src/Formats/KotlinWebsiteFormatService.kt +++ b/src/Formats/KotlinWebsiteFormatService.kt @@ -20,16 +20,8 @@ public class KotlinWebsiteFormatService(locationService: LocationService, return "" } - /* - TODO this should be a LocationService - override fun formatLink(text: String, location: Location): String { - val href = location.path.replace("\\", "/") - .replaceAfterLast(".", "html") - .replace("/index.html", "/"); - return "<a href=\"${href}\">${text}</a>" - } - */ + override public fun formatCode(code: String): String = "<code>$code</code>" override fun formatLink(text: String, href: String): String { return "<a href=\"${href}\">${text}</a>" |