{% include vars.html %}
{% assign shouldRender = false %}
{% if jekyll.environment == "development" %}
{% assign shouldRender = true %}
{% endif %}
{% if include.forceRender %}
{% assign shouldRender = true %}
{% endif %}
{% if shouldRender and vars_active_language.tag == 'en' %}
{% assign lines = include.content | newline_to_br | strip_newlines | split: '
' %}
{% assign insideCodeBlock = false %}
{% for line in lines %}
{% assign threeChar = line | slice: 0, 3 %}
{% assign firstChar = line | slice: 0, 1 %}
{% if threeChar == '```' %}
{% if insideCodeBlock %}
{% assign insideCodeBlock = false %}
{% else %}
{% assign insideCodeBlock = true %}
{% endif %}
{% endif %}
{% unless insideCodeBlock %}
{% if firstChar == '#' %}
{% assign stripped = line | strip_html %}
{% assign slug = stripped | slugify | prepend: 'toc-' %}
{% assign link = '' %}
{% assign full = stripped | append: ' ' | append: link %}
{% unless line contains link %}
This page contains this heading:
{{line | escape}}
All headings need a table of contents "toc" link, you have either left it out or are using the "wrong" one. Please use this one:
{{link | escape}}
Even if this is not your fault, please correct the error. Also if there is an existing toc, please check that any links on the website to this heading are correct (just search for the previous toc id).
If you believe you are seeing this warning by mistake, please open an issue.