Current scope: kotmark-renderer-kotlinx-html| all classes
|
io.heapy.kotmark.renderer.kotlinxhtml.adapters
Coverage Summary for Class: StrikethroughAdapterKt (io.heapy.kotmark.renderer.kotlinxhtml.adapters)
| Class | Method, % | Branch, % | Line, % | Instruction, % |
|---|---|---|---|---|
| StrikethroughAdapterKt | 100% (3/3) | 100% (4/4) | 100% (5/5) | |
| StrikethroughAdapterKt$strikethroughAdapter$1$1$1 | 100% (1/1) | 100% (1/1) | 100% (6/6) | |
| StrikethroughAdapterKt$strikethroughAdapter$lambda$0$$inlined$nodeRenderer$1 | 0% (0/1) | |||
| StrikethroughAdapterKt$strikethroughAdapter$lambda$0$$inlined$nodeRenderer$1$1 | 0% (0/2) | |||
| Total | 57.1% (4/7) | 100% (5/5) | 100% (11/11) |
package io.heapy.kotmark.renderer.kotlinxhtml.adapters
import io.heapy.kotmark.ext.gfm.strikethrough.Strikethrough
import io.heapy.kotmark.renderer.kotlinxhtml.KotlinxHtmlAdapter
import io.heapy.kotmark.renderer.kotlinxhtml.nodeRenderer
fun strikethroughAdapter(): KotlinxHtmlAdapter = KotlinxHtmlAdapter { configuration ->
configuration.nodeRenderer<Strikethrough> { node ->
element(node, "del") { renderChildren(node) }
}
}