Demonstration: Markdown Baseline and Multidoc

Abstract

This demo proves that the MarkCharm compiler acts as a strict superset of CommonMark. It demonstrates how native compiler features (includes, numbering, references) can be used to orchestrate pure .md files without MarkCharm syntax into a cohesive document.

1 Report Architecture

This document was constructed by joining two pure .md files via the {$INCLUDE} macro. Cross-references and automatic numbering flow naturally between included files.

1.1 Introduction to the Problem

Contemporary data analysis requires technical documents to seamlessly merge long-form text with exact cross-references. As established at the beginning of the document, the compiler automatically tracks anchors.

In the next chapter, we will look at the Table, which was declared entirely using classic Markdown syntax.

This introduction was written entirely in standard Markdown.

1.2 Compilation and Consolidated Data

Below is a standard Markdown table. MarkCharm will process it natively, injecting IDs and anchoring captions if the appropriate block is used or inferred.

Year Metric A Metric B Variation (%)
2024 1,500 200 5%
2025 1,850 250 25%
2026 2,100 310 24%

And as we can see, the growth over the three-year period was sustained.

Action item list:

2 Source Code

Here is the source code of the files that composed this document.

main.mc

\language{en}
\title{Demonstration: Markdown Baseline and Multidoc}

\maketitle

```abstract
This demo proves that the MarkCharm compiler acts as a strict superset of CommonMark.
It demonstrates how native compiler features (includes, numbering, references) can
be used to orchestrate pure `.md` files without MarkCharm syntax into a cohesive document.
```

# Report Architecture

This document was constructed by joining two pure `.md` files via the `{$INCLUDE}` macro.
Cross-references and automatic numbering flow naturally between included files.

{$INCLUDE section_intro.md}
{$INCLUDE section_data.md}

section_intro.md

## Introduction to the Problem

Contemporary data analysis requires technical documents to seamlessly merge long-form text with exact cross-references. As established at the beginning of the document, the compiler automatically tracks anchors.

In the next chapter, we will look at the Table, which was declared entirely using classic Markdown syntax.

*This introduction was written entirely in standard Markdown.*

section_data.md

## Compilation and Consolidated Data

Below is a standard Markdown table. MarkCharm will process it natively, injecting IDs and anchoring captions if the appropriate block is used or inferred.

| Year | Metric A | Metric B | Variation (%) |
|------|----------|----------|---------------|
| 2024 | 1,500    | 200      | 5%            |
| 2025 | 1,850    | 250      | 25%           |
| 2026 | 2,100    | 310      | 24%           |

And as we can see, the growth over the three-year period was sustained.

**Action item list:**
- Review 2026 numbers
- Prepare final report
- Export via `markcharm main.mc -f html`

Note

Usage Requirements & Caveats:

  1. Included .md files do not need \language or \maketitle, as they inherit main context.
  2. Globally set variables ({#SET ...}) are visible inside included .md files.