# dsh-markstream bundle patch # # This file is the `dsh.bundle.patch` layer of the package: when the plugin is # mounted in a profile (through `dsh plugin --profile add dsh-markstream` # or by listing it in the profile's `dsh.profile.bundles`), the profile boot # merges this patch — a single `insert` of the plugin row — into the web # composition, exactly like the manual cordis.patch.yml mount line below. # # Manual mount (no bundle channel) — append to the profile's cordis.patch.yml: # # - insert: # - id: markstream # name: 'dsh-markstream' # # The row is a dual-face plugin: the node half mounts as an ordinary host # entry, and the `dsh.client` manifest makes the modules node half serve # lib/client.js to the browser as a `dsh.client` row. # # The row `config` below is the COMPOSITION layer of the dsh-markstream # settings namespace (edited from the floating gear panel, see README). Every # key is optional and schema-defaulted; the panel writes the user layer on # top, and a cleared field re-inherits the value composed here. - insert: - id: markstream name: 'dsh-markstream' config: # 启用状态:false = 恢复出厂 Markdown 渲染(齿轮面板仍可重新打开) enabled: true # 明暗主题:auto 跟随 DSH 主题(body[data-ds-dark-theme]);light/dark 强制 theme: auto # auto | light | dark # 流式淡入动画 / 打字机光标 fade: true typewriter: false # 代码块:头部、提示、字号按钮、折叠按钮 codeBlockShowHeader: true codeBlockShowTooltips: true codeBlockShowFontSizeButtons: true codeBlockShowCollapseButton: false # 以下 codeBlockOptions 字段对齐 stream-diffs surface 推荐配置 # (https://markstream.simonhe.me/zh/guide/code-blocks.html#stream-diffs-surface-推荐) codeBlockDiffStyle: unified # unified | split(需 stream-diffs,未安装时回退
)
        codeBlockOverflow: wrap        # wrap | scroll
        codeBlockExpandUnchanged: false   # 折叠未变更的 diff 区域
        codeBlockEnableLineSelection: true
        codeBlockDisableLineNumbers: false
        codeBlockFontSize: 13         # 代码字号 px(推荐 13)
        codeBlockTabSize: 2
        codeBlockPadding: 12          # 上下对称内边距 px
        codeBlockMaxHeight: 480       # 最大高度 px(0 = 不限)
        # 默认主题对为 vitesse-dark / vitesse-light(文档默认)
        codeBlockLightTheme: vitesse-light
        codeBlockDarkTheme: vitesse-dark
        # 图表:需要对应的可选依赖(mermaid / @terrastruct/d2),未安装则自动回退
        mermaidEnabled: false
        mermaidIsStrict: true
        mermaidMaxHeight: 480
        d2Enabled: false
        d2MaxHeight: 480