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_diffs_markdown ¶
Render standalone Markdown diff output for a pipeline command.
This output is separate from the human per-file report. Commands use it for
--diff stdout payloads while routing guidance and summaries through the
regular human report path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
results
|
Sequence[ProcessingResult]
|
Durable processing results to inspect for retained diffs. |
required |
show_line_numbers
|
bool
|
Whether to prepend line numbers. |
False
|
Returns:
| Type | Description |
|---|---|
str
|
Markdown diff output, or an empty string when no diff is available. |
Source code in src/topmark/presentation/markdown/pipeline.py
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. |