diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-03 19:35:56 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-03 19:35:56 +0100 |
commit | 6659337410225b813ea902bfa4b2e5ba3c2c1aaa (patch) | |
tree | 3c3679f01bca4497f800a371e42681246843d5d3 /src/Formats/HtmlFormatService.kt | |
parent | e961960934e2f43cdfc6ad63126c005866a60003 (diff) | |
download | dokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.tar.gz dokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.tar.bz2 dokka-6659337410225b813ea902bfa4b2e5ba3c2c1aaa.zip |
support ordered lists
Diffstat (limited to 'src/Formats/HtmlFormatService.kt')
-rw-r--r-- | src/Formats/HtmlFormatService.kt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Formats/HtmlFormatService.kt b/src/Formats/HtmlFormatService.kt index fee21738..78d3cff2 100644 --- a/src/Formats/HtmlFormatService.kt +++ b/src/Formats/HtmlFormatService.kt @@ -98,11 +98,10 @@ public open class HtmlFormatService(locationService: LocationService, return "<code>${code}</code>" } - override fun formatList(text: String): String { - return "<ul>${text}</ul>" - } + override fun formatUnorderedList(text: String): String = "<ul>${text}</ul>" + override fun formatOrderedList(text: String): String = "<ol>${text}</ol>" - override fun formatListItem(text: String): String { + override fun formatListItem(text: String, kind: ListKind): String { return "<li>${text}</li>" } |