September 8, 2026
Abstract
This document serves as a comprehensive showcase of the MarkCharm compiler (version 0.74.0-alpha), demonstrating every major feature of the language in a single, cohesive document. From basic formatting to advanced computational blocks, cross-references, Mermaid diagrams, mathematical typesetting, conditional compilation, and bibliography management — all features work together harmoniously.
MarkCharm is developed by Portulogic Technologies under the MIT License.
The MarkCharm compiler transforms structured .mc documents into professionally formatted HTML, PDF, and DOCX output. As demonstrated by [1], the separation of content from presentation is fundamental to modern document engineering.
This showcase covers the following areas (see Sec. 2 through Sec. 5 for details):
This document combines features from all 29 previous examples into a single, cohesive document. Each section demonstrates real-world usage patterns.
The MarkCharm language supports bold, italic, bold italic, strikethrough, inline code, and underlined text. Explicit macros like bold and italic offer precise control for complex nesting scenarios.
Using the macros defined in the preamble:
All metadata is centralized via {#SET} / {#GET}:
| Property | Value |
|---|---|
| Project | MarkCharm |
| Version | 0.74.0-alpha |
| License | MIT License |
| Organization | Portulogic Technologies |
| Category | Feature | Status | Since |
|---|---|---|---|
| Formatting | Bold, Italic, Strike | Stable | v0.1.0 |
| Structure | Headings (6 levels) | Stable | v0.1.0 |
| References | Cross-references | Stable | v0.30.0 |
| Mathematics | LaTeX math | Stable | v0.40.0 |
| Diagrams | Mermaid integration | Stable | v0.50.0 |
| Bibliography | BibTeX pipeline | Stable | v0.55.0 |
| Computation | Script execution | Beta | v0.60.0 |
| Export | DOCX exporter | Alpha | v0.74.0 |
As shown in Tab. 3.1, the compiler has evolved through multiple major releases, with each version adding significant capabilities.
graph TD
A[Source .mc] --> B[Frontend]
B --> B1[Lexer]
B --> B2[Parser]
B --> B3[AST Builder]
B3 --> C[Engine]
C --> C1[Macros]
C --> C2[Numbering]
C --> C3[Cross-Refs]
C --> C4[Bibliography]
C3 --> D[Backend]
C4 --> D
D --> D1[HTML]
D --> D2[PDF]
D --> D3[DOCX]
The architecture shown in diag. 1 follows a classic three-phase compiler design: Frontend (parsing), Engine (semantic processing), and Backend (output generation).
The information entropy of a discrete source \(X\) with probability mass function \(p(x)\) is defined as:
For a binary symmetric channel with error probability \(\epsilon\), the channel capacity is:
These equations, first derived by Shannon [2], form the foundation of modern digital communication systems.
The MarkCharm reference system supports multiple styles:
| Macro | Output | Purpose |
|---|---|---|
\ref{id} |
1 | Number only |
\cref{id} |
sec. 1 | Label + number |
\Cref{id} |
Sec. 2 | Capitalized |
\nameref{id} |
“Visual Elements” | Title text |
All references in this document (such as subsection 3.1, Tab. 3.1, subsection 3.2, Diag. 1, and subsection 3.3) resolve automatically. If a target moves or is renumbered, all references update on recompilation.
This document cites three foundational works:
| n | n! | log₂(n!) |
|--:|---:|---------:|
| 1 | 1 | 0.00 |
| 2 | 2 | 1.00 |
| 3 | 6 | 2.58 |
| 4 | 24 | 4.58 |
| 5 | 120 | 6.91 |
| 6 | 720 | 9.49 |
| 7 | 5,040 | 12.30 |
| 8 | 40,320 | 15.30 |
The {#EXEC} feature runs Python code at compile time. Always use --safe mode when compiling documents from untrusted sources.
This document was compiled using MarkCharm version 0.74.0-alpha. Ensure you have the latest version for full feature support.
This showcase demonstrates that MarkCharm is a complete document engineering platform, capable of producing professional academic and technical documents from a single source file.
For more information, visit the project repository or consult the User Guide (markcharm docs USER_GUIDE.md).
MarkCharm — Built for humans. Loved by AI. Working for all.