Skip to main content

Module markup

Module markup 

Source
Expand description

Markup conversion for issue and pull-request text (plan conversations).

Hosts speak different markup: Jira wiki, Textile (Redmine), HTML (Azure DevOps Server, some trackers) and flavours of Markdown. Everything the app displays is normalised to Markdown first, and text the user writes is converted back for hosts that do not take Markdown. All of it is pure and lives here so the TUI, the CLI and MCP agree.

Every importer starts with sanitize: no escape sequence or control character reaches a renderer.

The converters are deliberately forgiving rather than complete: what they do not understand stays as readable text.

Functionsยง

html_to_markdown
HTML to Markdown. Unknown tags are dropped, their text kept.
jira_to_markdown
Jira wiki markup to Markdown.
markdown_to_html
Markdown to HTML for hosts that take HTML (Azure DevOps Server).
markdown_to_jira
Markdown to Jira wiki markup.
sanitize
text with every character a terminal could act on removed. \r\n becomes \n; a lone \r is dropped.
textile_to_markdown
Textile to Markdown.