{% assign _content = include.content %} {% if _content contains '' %} {% assign _content = _content | replace: '
', '
' | replace: '
', '' | replace: '', '' %} {% endif %} {% if _content contains '
' %}
  {% assign _content = _content
    | replace: '
', '' %} {% endif %} {% if _content contains '
  • <' %} {% assign _content = _content | replace: '"task-list-item"><', '"task-list-item" hide-bullet><' %} {% endif %} {% if _content contains ' {% if _content contains '
    ' %} {% assign _code_spippets = _content | split: '
    ' %} {% assign _new_content = '' %} {% for _snippet in _code_spippets %} {% if forloop.last %} {% assign _new_content = _new_content | append: _snippet %} {% else %} {% assign _left = _snippet | split: '><' | last%} {% if _left contains 'file="' %} {% assign _text = _left | split: 'file="' | last | split: '"' | first %} {% assign _label_icon = 'far fa-file' %} {% else %} {% assign _text = _left | split: 'language-' | last | split: ' ' | first %} {% assign _label_icon = 'fas fa-code small' %} {% endif %} {% capture _label %} {% endcapture %} {% assign _new_content = _new_content | append: _snippet | append: '
    ' | append: _label | append: '
    ' | append: '
    ' %} {% endif %} {% endfor %} {% assign _content = _new_content %} {% endif %} {{ _content }}