From 2e6eda906df5e66273deddbe7215c6dd15e4cc8c Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 10 Mar 2015 17:00:14 +0100 Subject: support HTML entities --- src/Formats/StructuredFormatService.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Formats') diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt index cc551eb4..0e01db4d 100644 --- a/src/Formats/StructuredFormatService.kt +++ b/src/Formats/StructuredFormatService.kt @@ -32,6 +32,7 @@ public abstract class StructuredFormatService(locationService: LocationService, public abstract fun formatSymbol(text: String): String public abstract fun formatKeyword(text: String): String public abstract fun formatIdentifier(text: String, kind: IdentifierKind): String + public fun formatEntity(text: String): String = text public abstract fun formatLink(text: String, href: String): String public open fun formatLink(link: FormatLink): String = formatLink(formatText(link.text), link.href) public abstract fun formatStrong(text: String): String @@ -56,6 +57,7 @@ public abstract class StructuredFormatService(locationService: LocationService, is ContentKeyword -> append(formatKeyword(content.text)) is ContentIdentifier -> append(formatIdentifier(content.text, content.kind)) is ContentNonBreakingSpace -> append(formatNonBreakingSpace()) + is ContentEntity -> append(formatEntity(content.text)) is ContentStrong -> append(formatStrong(formatText(location, content.children))) is ContentStrikethrough -> append(formatStrikethrough(formatText(location, content.children))) is ContentCode -> append(formatCode(formatText(location, content.children))) -- cgit