package org.jetbrains.dokka public trait FormatService { val extension: String fun appendNodes(to: StringBuilder, nodes: Iterable) fun appendOutline(to: StringBuilder, nodes: Iterable) } fun FormatService.format(nodes: Iterable): String = StringBuilder { appendNodes(this, nodes) }.toString() fun FormatService.formatOutline(nodes: Iterable): String = StringBuilder { appendOutline(this, nodes) }.toString()