 == "" %}
      {% continue %}
    {% endif %}

    {% assign nextChar = node | replace: '"', '' | strip | slice: 0, 1 %}
    {% assign headerLevel = nextChar | times: 1 %}

    <!-- If the level is cast to 0, it means it's not a h1-h6 tag, so let's try to fix it -->
    {% if headerLevel == 0 %}
      {% if nextChar != '<' and nextChar != '' %}
        {% capture node %}<h{{ node }}{% endcapture %}
      {% endif %}

      {% capture edited_headings %}{{ edited_headings }}{{ node }}{% endcapture %}
      {