topmark.presentation.markdown.paths¶
topmark / presentation / markdown / paths
Markdown-specific human-facing path presentation helpers.
This module adapts shared display-path policy to Markdown output by applying Markdown-specific escaping and STDIN annotations.
render_path_display_markdown ¶
Render a short Markdown path label for headings and list items.
This helper formats
get_display_path()
for Markdown and annotates STDIN-backed content with _(via STDIN)_ when a
synthetic filename is available.
The shared display-path policy determines the raw path label; this helper then applies Markdown-specific code-span escaping and STDIN annotation rendering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ctx
|
ProcessingContext
|
Processing context containing the path to display. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Short Markdown label for per-file headings and guidance messages. |