Difference between include-markdown and include tags
masterThe plugin provides two primary ways to include content from other files:
{% include-markdown 'path/to/file.md' ... %}: This tag includes the content and processes it as Markdown. This is necessary if the included file contains Markdown syntax (like headers, bold text, or lists) that you want to be rendered correctly in the final output.{% include 'path/to/file.md' ... %}: This tag includes the content as raw text without Markdown processing. Use this when you want to include content exactly as it is, without the plugin attempting to parse its syntax.
Both tags support parameters like start, end, and dedent to control how the content is extracted and formatted.
{# Process as Markdown}
{% include-markdown 'included.md' start='<!--start-->' end='<!--end-->' dedent=true heading-offset=2 %}
{# Include as raw text}
{% include 'included.md' start='<!--start-->' end='<!--end-->' trailing-newlines=false %}