diff options
Diffstat (limited to 'src/Formats/HtmlFormatService.kt')
-rw-r--r-- | src/Formats/HtmlFormatService.kt | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Formats/HtmlFormatService.kt b/src/Formats/HtmlFormatService.kt index 46e4be4a..a3cea96a 100644 --- a/src/Formats/HtmlFormatService.kt +++ b/src/Formats/HtmlFormatService.kt @@ -22,18 +22,12 @@ public open class HtmlFormatService(locationService: LocationService, return "<span class=\"identifier\">${formatText(text)}</span>" } - override fun appendBlockCode(to: StringBuilder, line: String) { + override fun appendBlockCode(to: StringBuilder, line: String, language: String) { to.append("<pre><code>") to.append(line) to.append("</code></pre>") } - override fun appendBlockCode(to: StringBuilder, lines: Iterable<String>) { - to.append("<pre><code>") - to.append(lines.join("\n")) - to.append("</code></pre>") - } - override fun appendHeader(to: StringBuilder, text: String, level: Int) { to.appendln("<h$level>${text}</h$level>") } |