dsh-code-render
Đã xác minh@ch4acko3/dsh-code-render · v0.1.2 · MIT · Giao diện web
Safe HTML code rendering service for DeepSeek Harness Web plugins
Cài đặt
dsh plugin add @ch4acko3/dsh-code-render Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.
Mã nguồn
Phát hành lên npm mà không có repository công khai. Hãy kiểm tra nội dung package trước khi cài.
Thẻ
Readme
@ch4acko3/dsh-code-render
A browser-side Cordis service that renders ctx.syntaxHighlighter tokens as safe, theme-aware HTML code blocks.
export const inject = ['codeRenderer']
export function apply(ctx) {
const result = ctx.codeRenderer.render({
code: 'const answer = 42',
language: 'ts',
})
console.log(result.html)
}
Source text and HTML attributes are escaped. Colors follow DSH's --shiki-* CSS variables, and original LF, CRLF, or CR line endings are retained.