Markdown Content Demo

Demonstrating content/design separation with both plain text and markdown

Welcome to the Markdown Content Demo!

This demonstrates content/design separation with text inclusion using Super-Simple Includes.

What this example adds to the minimal site:

File Format Examples

Markdown files like this one support rich formatting while plain text files provide security through automatic HTML escaping

The 📜 emoji syntax makes it easy to include content while keeping your HTML clean and focused on structure. Choose the right approach for your content:

Next, try the variables example to see how dynamic content can be added!

About This Example

This example demonstrates text inclusion and markdown with Super-Simple Includes. This builds on the minimal example by adding external assets and markdown support.

Key Features Demonstrated

When to Use This Approach

This pattern works well for:

Content Organization Benefits

Separating content from design makes it easier for:

The 📜 emoji syntax makes it easy to include content while keeping your HTML clean and focused on structure. Choose the right approach for your content:

This separation makes websites easier to maintain and update.

Key Features

This example site demonstrates these features:

Progression from Minimal Example

This example builds on the minimal site by adding:

  1. External Assets: CSS file and fonts in assets/ directory
  2. Markdown Support: .md files for rich content formatting
  3. Security Demonstration: Shows HTML escaping in action

Core Features

File Format Guide

FormatSuitable ForSecurityProcessing
.txtSimple text, code examplesHTML-escaped (safe)Plain text only
.mdArticles, rich contentRaw HTML allowedMarkdown to HTML
assets/CSS, fonts, imagesCopied as-isNo processing

Good For

Next Steps

Try the variables example to see how dynamic content can be added while maintaining clean separation between content, configuration, and design.

HTML Security Demonstration

The content below is included from a .txt file to show how HTML is safely escaped:

This text contains HTML that will be automatically escaped: <script>alert('This would be dangerous if not escaped!');</script> <h1>This heading tag will be visible as text</h1> <a href="https://example.com">This link won't work</a> <img src="evil.jpg" onerror="alert('XSS attempt')"> All these HTML tags are safely escaped and displayed as plain text. This protects against XSS attacks and ensures content remains safe.