' | append: list_items | append: '</li>' -%}
            {%- endfor -%}
            {%- assign link_text = link_text | append: '</ul>' -%}
        {%- else -%}
            {%- assign link_text = '<a href="' | append: url | append: '">' | append: title | append: '</a>' -%}
        {%- endif -%}
        {%- assign bracket_link = '[[' | append: title | append: external_link_delimiter | append: url | append: ']]' -%}
        {%- assign replaced_content = replaced_content | replace: bracket_link,link_text -%}
  