{%
document = fetch(content);
if(content.toString().endsWith('md')) { document = markdown(document); }
document = highlight(run(document, content));
h2 = document.querySelectorAll('h2');
%}
{% i = 0 %}
{% for (element of h2) {
element.id = 'section' + i;
if (num) { element.innerHTML = (i+1)+'. '+element.innerHTML }
%}
{=element.innerText%}
{% i++ %}
{% } %}
0" class="btn-group btn-group-sm d-print-none" role="group" aria-label="Basic example">
{% for (link of links) { %}
{% if (link['href']=='??.') { %}
{=link['name'] %}
{% } else { %}
{=link['name'] %}
{% } %}
{% } %}
{=title%}
{=document%}