convertToListNode
fun TableOfContentsView.convertToListNode(renderer: NodeVisitor<CharSequence>, items: List<TableOfContents.Item>, linkUrlMapper: (TableOfContents.Item) -> String): OrderedList
Converts a table of contents to a renderable OrderedList.
Parameters
renderer
renderer to use to render items
items
ToC items this view should contain
linkUrlMapper
function that obtains the URL to send to when a ToC item is interacted with