formatBugReportDiagnostics
Renders diagnostic sections as Markdown: a level-3 heading and a fenced code block per section. The fence is longer than any run of backticks in the content, so no content can close it.
Import:
import { formatBugReportDiagnostics } from '@mnaoumov/obsidian-lib/bug-report-diagnostics';Signature:
function formatBugReportDiagnostics(sections: readonly BugReportDiagnosticSection[]): stringParameters:
| Parameter | Type | Description |
|---|---|---|
sections |
readonly BugReportDiagnosticSection[] | The sections. |
Returns: string — The Markdown, or an empty string when there are no sections.