Install
niyue / DeepSeek User Message Markdown Renderer

Published:

Version: 1.0.10+93e7ce2 updated

Summary: Render your own messages on DeepSeek web with native-style Markdown, LaTeX math, and official code blocks; safe editing and history highlight included.

Homepage: https://github.com/NIyueeE/deepseek-user-message-renderer

Support: https://github.com/NIyueeE/deepseek-user-message-renderer/issues

License: MIT

Antifeature: unspecified

About

DeepSeek User Message Markdown Renderer is a userscript for DeepSeek web. It renders the Markdown, LaTeX math, and code blocks in your own messages with the exact native styles DeepSeek uses for assistant replies.

Features

  • Native-style Markdown: headings, paragraphs, lists, inline code, links, and blockquotes.
  • LaTeX math via KaTeX: $...$, $$...$$, \(...\), \[...\].
  • Code blocks rebuilt into DeepSeek's official md-code-block structure: language banner, native light/dark themes, corner decorations, and Prism-style token colors.
  • Hard line breaks in code blocks are preserved; unknown languages (e.g. mermaid) stay as clean code blocks without console warnings.
  • Safe editing: the original message is restored before DeepSeek reads it, so the editor never crashes; cancel re-renders the message and empty placeholders are cleaned up.
  • History highlight mirrored: clicking a message in the history panel flashes the bubble and fades it back out, matching the native behavior.
  • Original DeepSeek nodes are never removed — they are hidden with CSS only, so React's references stay valid and re-rendering never throws.

Install & Update

Install with Tampermonkey. The script loads marked, highlight.js, and KaTeX from CDNs via @require, and auto-updates from GitHub when @updateURL / @downloadURL are enabled.

Compatibility

Tested against the current DeepSeek web build. The script relies on some hashed CSS class names that DeepSeek occasionally changes; a small header/class update may be needed after their big UI releases.

Links

Rating: 0