mif-to-pdflisted
Install: claude install-skill modeled-information-format/mif-docs-plugin
# mif-to-pdf
Shared helper (not a standalone document genre). Converts a **MIF JSON-LD
document** into a real, typeset PDF file — not a plain-text dump of the body —
embedding every field the source carries as richly structured PDF metadata.
## One input surface: JSON-LD only
This skill does not parse Markdown or YAML frontmatter itself. If the source
is a Markdown MIF document, convert it to JSON-LD first with this suite's
existing tooling — the same projection `mif-validate` already performs, not a
second, duplicate parser living inside this skill:
```bash
node scripts/mif-convert.mjs emit-jsonld <doc.md> > <doc.json>
node scripts/mif-validate.mjs <doc.md> --level 1 # conformance gate, run before or after
node scripts/mif-to-pdf.mjs <doc.json> --output <doc.pdf>
```
If asked to convert a `.md` file directly, run the `emit-jsonld` step first
rather than attempting to read the Markdown's frontmatter directly — never
hand-parse YAML frontmatter as a shortcut around the existing projection.
## Markdown rendering: this suite's own round-trip-safe subset
The `content` body is real markdown text — this skill actually renders it.
Most of the supported subset is exactly what `mif-validate`'s own
markdown-to-JSON-LD projection (`scripts/lib/projection.mjs`) round-trips
losslessly: h1–h3 headings (distinct sizes, bold), paragraphs, flat bullet
lists, tables (bordered, header row bold), inline `code` (monospace),
**bold**, `[text](url)` links and `<url>` autolinks (rendered as