Outputs And Rendering

ProtoML treats the source .pml file as structured input that can be rendered in several ways depending on audience and workflow.

Supported outputs

These outputs are not just format conversions. They represent different ways of consuming the same structured ProtoML source.

Choosing the right output

What each output emphasizes

Typical commands

protoparser "test.pml" html
protoparser "test.pml" pdf
protoparser "test.pml" json
protoparser "test.pml" markdown
protoparser "test.pml" text

Practical output choices

Output path behavior

This automatic path behavior is especially useful once documents start importing HTML or ProtoML snippets, because it avoids cluttering the source directory.

Rendering and macros

Macros are most valuable in HTML output. Markdown and text prioritize readability and intentionally avoid carrying across complex styling or embedded behavior.

Themes and metadata visibility

HTML and PDF output can be influenced either by an explicit CLI theme or by document metadata such as @theme:dark. Metadata output itself can be hidden with -hideMeta or @hide_meta:true when the rendered document should stay visually focused on the body content.

protoparser "test.pml" html -theme=dark
protoparser "test.pml" pdf -hideMeta

Output strategy for teams

Related guides