diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-10 17:00:14 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-03-10 17:00:14 +0100 |
commit | 2e6eda906df5e66273deddbe7215c6dd15e4cc8c (patch) | |
tree | 57606f47e3bf7f1eb71688ce7e1d348f8c73d643 /src/Formats | |
parent | 549791160cff5e02a69b632b366efcb71e3f5865 (diff) | |
download | dokka-2e6eda906df5e66273deddbe7215c6dd15e4cc8c.tar.gz dokka-2e6eda906df5e66273deddbe7215c6dd15e4cc8c.tar.bz2 dokka-2e6eda906df5e66273deddbe7215c6dd15e4cc8c.zip |
support HTML entities
Diffstat (limited to 'src/Formats')
-rw-r--r-- | src/Formats/StructuredFormatService.kt | 2 |
1 files changed, 2 insertions, 0 deletions
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))) |