topmark.presentation.markdown.pipeline¶
topmark / presentation / markdown / pipeline
Markdown pipeline renderers for the TopMark CLI.
This module renders human-facing Markdown output for pipeline-oriented commands
such as topmark check and topmark strip.
Markdown output is document-oriented: it intentionally ignores TEXT-only
verbosity, quiet, and styling controls. Pipeline content is controlled by
semantic command options such as --summary, --report, and --diff.
Notes
- TEXT pipeline output is implemented in
topmark.presentation.text.pipeline. - Machine-readable output is handled via domain machine serializers.
render_pipeline_output_markdown ¶
Render human-facing Markdown output for a pipeline command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
report
|
PipelineCommandHumanReport
|
Prepared human report for the pipeline command. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Rendered Markdown output. |
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If an invalid pipeline kind was selected. |
Source code in src/topmark/presentation/markdown/pipeline.py
render_pipeline_apply_summary_markdown ¶
Render the apply-summary footer for Markdown output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
command_path
|
str
|
Command path, such as |
required |
written
|
int
|
Number of files written. |
required |
failed
|
int
|
Number of files that failed to write. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Rendered Markdown footer. |