Introduction¶
The standard input box of DeepSeek Harness (DSH) currently handles plain text only. When Markdown formatting is needed, developers typically have to write code manually or rely on external tools. The dsh-markdown-composer plugin solves this problem by adding functionality on top of the official input box. It is a purely incremental plugin that does not replace the official input box, thereby preserving all official capabilities such as attachment uploads, model selection, permission/plan controls, and slash commands.
Core Features¶
Live Preview¶
A preview card appears above the input box, rendering draft content in real time. This preview uses the official MarkdownText primitive with the same GFM + TeX renderer as the conversation body. Supported syntax includes headings, bold/italic/strikethrough, inline code, fenced code blocks (with highlighting), ordered/unordered/task/nested lists, blockquotes, tables, links, footnotes, KaTeX math formulas, and horizontal rules. Attachments and images are not rendered in the preview.
Formatting Toolbar¶
The header of the preview card integrates 12 buttons, including bold, italic, strikethrough, inline code, link, H1, H2, unordered list, ordered list, task list, blockquote, and code block. Clicking a button does not steal focus from the input box.
Syntax Shortcuts¶
Shortcuts can be used directly within the input box to insert or toggle syntax. macOS uses ⌘, and Windows/Linux uses Ctrl. Shortcuts are determined by physical key positions.
| Shortcut | Action |
|---|---|
⌘B |
Bold |
⌘I |
Italic |
⌘K |
Link |
⌘⇧1 / ⌘⇧2 / ⌘⇧3 |
H1 / H2 / H3 |
⌘⇧8 |
Unordered list |
⌘⇧7 |
Ordered list |
⌘⇧9 |
Task list |
⌘⇧. |
Blockquote |
⌘⇧C |
Code block |
List Continuation & Chip Safety¶
Pressing Shift+Enter inside a list item or blockquote line automatically continues the line with the same-level marker (e.g., -, *, 1., - [ ], >). Pressing Shift+Enter again on an empty list item exits the list. The plugin also implements a safe editing plan for reference chips, ensuring that segments containing @file or /command chips are not overwritten or downgraded to plain text while editing the draft.
Installation & Activation¶
Web Installation¶
- Place the plugin repository in any directory.
- Add the dependency to the corresponding profile’s
package.json:
// ~/.dsh/profiles/<profile>/package.json
{
"dependencies": {
"dsh-markdown-composer": "link:/path/to/dsh-markdown-composer"
}
}
- Run the installation command:
dsh plugin --profile web install
- Restart the DSH application to apply the changes.
Desktop Installation¶
The CLI’s dsh plugin command does not support desktop profiles. You need to install the same link: dependency using the plugin manager within the DSH application (Settings → Plugins, or the Agent-side plugin_manager tool).
Usage Examples¶
List Continuation¶
Press Shift+Enter inside a list item, and the cursor will automatically land after the same-level marker on the next line:
- First point
- Second point
Preference Persistence¶
The preview toggle and collapse state are saved in localStorage (dsh-markdown-composer.*), maintaining the last settings after a refresh or restart.
Notes¶
- Input content: The input box still displays raw Markdown text; WYSIWYG is achieved through the preview card above.
- Enter key: The
Enterkey retains its original DSH semantics (send message); list continuation only supportsShift+Enter. - Desktop limitations: Desktop requires installation via the in-app manager;
dsh plugin --profile desktopis not supported. - Attachments & links: The preview does not render attachments or images; local file relative paths in the workspace do not become clickable file links.
Summary¶
dsh-markdown-composer is an incremental enhancement plugin for the DSH input experience. Through live preview, toolbars, and shortcuts, it makes Markdown editing more intuitive while maintaining compatibility with the official input box. This plugin is maintained by dgmico and is released under the MIT license.