'</ul>';
    }
    return result;
}

function listitem(headId, text) {
    return  '<li class="linker">' + 
                '<i class="fa fa-plus"></i>' +
                '<a class="text-ellipsis" href="#user-content-' + headId + '">' + text + '</a>' +
            '</li>';
}

const RendererMode = Object.create(null);
RendererMode.rmArchor = 0x0001;
RendererMode.rmContent = 0x0002;
RendererMode.rmGnav = 0x0004;

function Renderer() {
    var R = this;
    R.mode = RendererMode.rmArchor | RendererMode.rmConte