dsh-chat-math: Enable DSH Chat to Directly Output Renderable TeX Math

dsh-chat-math is a DSH client plugin maintained by EnhydraLutristus. Through the chat-math-format prompt segment and llm/stream normalization prior to persistence, it converts legacy formats—such as code blocks, inline backticks, and bold Unicode—into $...$ and $$...$$ notation as much as possible, validates the output with the same version of KaTeX used by the renderer, and retains the original text if validation fails. Install it using `node tools/install.mjs`; configuration lives in the profile's `cordis.patch.yml`. It can be combined with macroExpansions to process preamble macros. When used alongside dsh-math-tex, it is recommended to disable that plugin's repair feature. Licensed under MIT, version 0.1.5.

Read More