September 8, 2026
MarkCharm includes built-in security mechanisms to protect against common document compilation risks.
The --safe flag blocks:
{#EXEC})\fetchremote)The compiler emits structured diagnostics following the MCE-* (errors) and MCW-* (warnings) code system.
| Code | Severity | Description |
|---|---|---|
MCE-FIG-001 |
Error | Figure source file not found |
MCE-REF-001 |
Error | Undefined cross-reference target |
MCW-REF-002 |
Warning | Numeric ref used on unnumbered target |
MCW-SYN-002 |
Warning | LaTeX hallucination detected |
MCW-FIG-001 |
Warning | Captioned block missing reference anchor |
MCW-SEC-001 |
Warning | Media path escapes document directory |
To validate a document without compiling:
markcharm main.mc --check --error-format llm
To validate an entire directory:
markcharm check-dir . --error-format llm
To explain a specific diagnostic code:
markcharm explain MCE-FIG-001
The \censor{} command redacts sensitive content, replacing it with a black bar in the output while preserving the original text in the source file.