luckbiao/dsh-markdown-highlighter ↗★ 0

@my-plugins/dsh-markdown-highlighter

Rich syntax highlighting for DSH Markdown: activates builtin Shiki theme colors (Python, JS, HTML, etc.) and styles diff codeblocks with green/red backgrounds 适合需要美化代码展示的用户,提供丰富的编程语言高亮及直观的差异对比。

Package
@my-plugins/dsh-markdown-highlighter
Compatibility
Unverified
Version
1.0.0
License
MIT
Last updated
Sep 27, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

方式 2:本地手工配置

  1. 将本仓库 clone 到 ~/.dsh/custom-plugins/dsh-markdown-highlighter
  2. 在 ~/.dsh/profiles/web/cordis.patch.yml 中追加:
    - insert:
        - id: markdown-highlighter
          name: '@my-plugins/dsh-markdown-highlighter'
    
  3. 重启 dsh web 并在浏览器刷新即可生效。

💡 使用示例

1. 普通 Python 语法高亮

```python
def is_trading_day(today: str) -> bool:
    # 自动识别交易日
    return today in trade_dates
```

2. 带 Python 语法高亮的 Diff 块

首行使用 # lang: python 显式声明:

```diff