diff options
Diffstat (limited to 'src/Formats/StructuredFormatService.kt')
-rw-r--r-- | src/Formats/StructuredFormatService.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt index 740f6b6a..08b7e55d 100644 --- a/src/Formats/StructuredFormatService.kt +++ b/src/Formats/StructuredFormatService.kt @@ -30,6 +30,8 @@ public abstract class StructuredFormatService(val locationService: LocationServi public abstract fun formatStrong(text: String): String public abstract fun formatEmphasis(text: String): String public abstract fun formatCode(code: String): String + public abstract fun formatList(text: String): String + public abstract fun formatListItem(text: String): String public abstract fun formatBreadcrumbs(items: Iterable<FormatLink>): String open fun formatText(location: Location, nodes: Iterable<ContentNode>): String { @@ -46,6 +48,9 @@ public abstract class StructuredFormatService(val locationService: LocationServi is ContentStrong -> append(formatStrong(formatText(location, content.children))) is ContentCode -> append(formatCode(formatText(location, content.children))) is ContentEmphasis -> append(formatEmphasis(formatText(location, content.children))) + is ContentList -> append(formatList(formatText(location, content.children))) + is ContentListItem -> append(formatListItem(formatText(location, content.children))) + is ContentNodeLink -> { val linkTo = locationService.relativeLocation(location, content.node, extension) val linkText = formatText(location, content.children) |