September 8, 2026
MarkCharm provides a powerful macro system inspired by LaTeX's \newcommand.
Define a macro once, use it everywhere:
.mc files to HTML, PDF, and DOCX.If the name changes, you update it in one place — the definition.
Macros can accept arguments using #{1}, #{2}, etc.:
\newcommand{name}{\textbf{#{1}} — #{2}}
The compiler enforces a recursion depth limit of 10 levels to prevent infinite expansion loops.