dsh-md-html-render: Render Markdown to a single-file HTML ready to share
dsh-md-html-render is a client-side category plugin for DSH, maintained by YaoleWu. It provides the `md_html_render` tool, which converts Markdown into self-contained HTML (optionally writing to disk) and functions even in headless profiles. On the Web GUI side, an MD drawer is provided, allowing for local browsing, rendering, editing, and exporting of `.md` files within the working directory. Both entry points share the `lib/render.js` renderer, ensuring byte-for-byte consistency between the model generation page and the drawer export page. The output does not load any stylesheets, scripts, or images, ensuring consistent appearance when opened offline and adhering to the reader's dark mode. The plugin has zero runtime dependencies, with the renderer consisting of approximately 150 lines of hand-written JavaScript. All `fs` services that interact with the harness inherit the session sandbox, and the drawer is read-only for `.md`, `.markdown`, `.mdx`, and `.txt` files. Documents are HTML-escaped prior to rendering; links targeting URLs outside the whitelist are collapsed to `#`, and raw HTML is not executed. It requires Node.js ^22.19.0 || >=24.0.0 and is licensed under the MIT License. At version 0.3.0, the package was renamed from `dsh-md-preview` to `dsh-md-html-render`. Since the old name is registered by someone else on npm, it must be installed from GitHub. Update the profile's `package.json` to declare `github:YaoleWu/dsh-md-preview#v0.3.0` and run `pnpm install`, followed by a restart.
Read Moredsh-md-html-render: Render Markdown to Standalone HTML in DSH
dsh-md-html-render is a DeepSeek Harness (DSH) plugin maintained by LeslieWylie and released under the MIT license. The plugin aims to render Markdown into standalone, self-contained HTML pages without external dependencies, making it suitable for forwarding, archiving, or offline viewing. It provides two entry points: a model-callable `md_html_render` tool that supports generating and saving HTML within a headless profile, and an MD drawer in the Web GUI that allows users to browse, edit, and export Markdown within the session. The plugin's core features include no runtime dependencies, and all file operations are performed through the harness fs service and s.
Read More