qwik-cms/content/components/toc.njk

6 lines
218 B
Plaintext

{% macro header(size, text) %}
<a name="{{ text | replace(" ", "-") }}" data-orig-text="{{ text }}" class="toc-anchor toc-anchor-{{ size }}"></a>
<{{ size }}>
{{ text }}
</{{ size }}>
{% endmacro %}