Introduction¶
DeepSeek Harness (DSH) embraces the “everything is a plugin” philosophy, with plugins running within the current session process. When producing deliverables such as meeting minutes, analytical conclusions, or project weekly reports, developers often face a dilemma: either use Markdown for quick drafts, or use rich-text tools for polished formatting. The former is inconvenient for cross-platform editing, while the latter often makes it difficult to print directly to A4 paper or export as a PDF. This plugin converts Markdown input into a client-ready HTML report—complete with a cover page, table of contents, brand colors, and print rules. Press Ctrl+P in the browser to export a PDF without tables being split across page breaks.
Plugin Scope¶
The plugin is named liuhange789/dsh-client-deliverable-pipeline, classified under the “Client” plugin category, and published by maintainer liuhange789. It converts Markdown content such as meeting minutes, analytical conclusions, and project weekly reports into a single-file HTML document with no external CSS/JS/font dependencies—openable and printable even offline.
Installation & Activation¶
Add the plugin dependency and profile bundle to the project’s configuration file:
{
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-headless",
"@liuhange/dsh-client-deliverable-pipeline"
]
}
},
"dependencies": {
"@liuhange/dsh-client-deliverable-pipeline": "0.1.0"
}
}
After installation, restart the profile. The build_report tool will become available.
Usage¶
Basic Usage¶
build_report inputFile="report.md" clientName="Acme" brandColor="#1f6feb" subtitle="2026 Fall Delivery Review"
Upon execution, an HTML file is generated, e.g., Report-Acme-1795000000000.html. The report includes a cover page, table of contents, styled body content, and a footer.
Parameter Reference¶
| Parameter | Required | Description |
|---|---|---|
inputFile |
Yes | Markdown source file within the workspace |
clientName |
Yes | Client name, used for the cover, footer, and filename |
title |
No | Report title; defaults to “ |
subtitle |
No | Cover subtitle |
brandColor |
No | Hex brand color; defaults to #1f6feb; other formats raise an error directly |
date |
No | Cover date; defaults to today (YYYY-MM-DD) |
footerNote |
No | Additional footer note, e.g., “Confidential · Internal Use Only” |
lang |
No | <html lang> attribute; defaults to zh-CN |
output |
No | Output path; defaults to Report-<Client>-<timestamp>.html; must be within the workspace and end with .html |
The return value includes path, clientName, title, brandColor, sectionCount, tocEntries, bytes, and elapsedMs.
Output¶
- Cover page: Brand-color top bar, report title, subtitle, and a three-column info section (client / date / type); prints on its own dedicated first page.
- Table of contents: Auto-generated from H2/H3 headings with numbering and anchor links; not generated if there are fewer than 2 entries.
- Body typography: Brand-color left border on H2, brand-color table headers, code blocks, blockquotes, and striped tables.
- Print rules (core):
- Cover occupies a full page
- Headings (h1–h4) are never orphaned at the bottom of a page
- Table rows are not split
- Table headers repeat on each page
- Images/code blocks are not broken across pages
Specific CSS snippet:
@page { size: A4; margin: 2cm; }
@media print {
.cover { page-break-after: always; }
h1, h2, h3, h4 { page-break-after: avoid; }
thead { display: table-header-group; }
tr, img, figure, pre, blockquote { page-break-inside: avoid; }
}
- Footer:
Client · Title · Date · Additional Note, fixed at the bottom of every page when printing.
Runtime Constraints¶
- No external CSS/JS/font dependencies; openable and printable offline. Images referenced in Markdown are still loaded by the browser from their original URLs (ensure accessibility before printing).
- Brand color is processed using WCAG relative luminance: light brand colors (e.g.,
#ffff00) are not used as text on white backgrounds; links and TOC numbers are automatically darkened to meet a 4.5:1 contrast ratio; cover text automatically selects black or white;#rrggbbaaalpha values are composited onto a white background before contrast calculation. - Rendering time < 500ms (Markdown parsing + template assembly), independent of any browser engine.
- Client name, title, subtitle, and footer are all HTML-escaped; filenames strip Windows/POSIX illegal characters.
- Input/output paths must reside within the current session workspace; out-of-bounds paths raise an error directly—no partial artifacts are left behind.
Known Limitations¶
- Raw HTML in Markdown is passed through as-is (
markeddoes not filter it)—report content is provided by you; do not feed untrusted HTML into the pipeline. - The TOC indexes only H2/H3; H1 is treated as the body title and excluded from the TOC.
- Page numbers are generated by the browser’s print engine; no page-number counting is performed within the HTML (to avoid
@pagecounter compatibility issues). - Typography only—no chart rendering. For charts, include images in the Markdown beforehand.
Use Cases & Notes¶
Suitable for developers who need to quickly transform Markdown content into printable/PDF-exportable delivery reports. The plugin runs with the permissions of the current dsh process; review the source code and license before installing. Known limitations include: no processing of raw HTML, no chart rendering, and reliance on the browser print engine for page numbers.
Summary¶
The dsh-client-deliverable-pipeline plugin provides a complete workflow from Markdown to A4 client-grade delivery reports, including a cover page, table of contents, brand colors, and print rules—meeting the need to send directly to clients and print/export as PDF. Once installed, use the build_report tool to transform daily meeting minutes, analytical conclusions, and project weekly reports into immediately deliverable HTML files.