MarkCharm Feature Showcase: A Complete Document

Jane Doe, John Smith and Alice Johnson

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.

Keywords: MarkCharm, showcase, compiler, document engineering, structured authoring

1 Introduction

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):

Note

This document combines features from all 29 previous examples into a single, cohesive document. Each section demonstrates real-world usage patterns.

2 Formatting and Structure

2.1 Inline Formatting

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.

2.2 Custom Macros in Action

Using the macros defined in the preamble:

2.3 Document Variables (SSOT)

All metadata is centralized via {#SET} / {#GET}:

Property Value
Project MarkCharm
Version 0.74.0-alpha
License MIT License
Organization Portulogic Technologies

3 Visual Elements

3.1 Tables with Captions

Table 3.1. MarkCharm Feature Matrix
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.

3.2 Mermaid Diagrams

Diagram 1. Compiler Architecture
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).

3.3 Mathematics

The information entropy of a discrete source \(X\) with probability mass function \(p(x)\) is defined as:

\[H(X) = -\sum_{x \in \mathcal{X}} p(x) \log_2 p(x)\]
(3.1)

For a binary symmetric channel with error probability \(\epsilon\), the channel capacity is:

\[C = 1 - H(\epsilon) = 1 + \epsilon \log_2 \epsilon + (1-\epsilon) \log_2 (1-\epsilon)\]
(3.2)

These equations, first derived by Shannon [2], form the foundation of modern digital communication systems.

4 References and Citations

4.1 Cross-Reference Summary

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.

4.2 Bibliography

This document cites three foundational works:

5 Computation and Dynamics

5.1 Script Execution

| 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 |

5.2 Alerts and Callouts

Warning

The {#EXEC} feature runs Python code at compile time. Always use --safe mode when compiling documents from untrusted sources.

Important

This document was compiled using MarkCharm version 0.74.0-alpha. Ensure you have the latest version for full feature support.

6 Conclusion *

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.

References

[1] Donald E. Knuth. The TeXbook. Addison-Wesley. Reading, MA. 1984.
[2] Claude E. Shannon. A Mathematical Theory of Communication. Bell System Technical Journal. v. 27. p. 379–423. 1948.
[3] Alan M. Turing. On Computable Numbers, with an Application to the Entscheidungsproblem. Proceedings of the London Mathematical Society. v. 42. p. 230–265. 1936.