convertTableOfContentsToListNode

Converts a table of contents to a renderable OrderedList.

Parameters

renderer

renderer to use to render items

items

ToC items view contains, prior to filtering

linkUrlMapper

function that obtains the URL to send to when a ToC item is interacted with