zai-org / zai-org/feedback

[Feature Request] 终端 Markdown 代码块支持 Vue 语法高亮

Open
#250 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P2
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

问题描述

在 ZCode 终端对话中,当 AI 输出 Vue 单文件组件(.vue)代码时,使用 ```vue 标记的代码块没有语法高亮。

期望行为


## 当前替代方案

用户只能手动拆分为 `html`、`javascript`、`css` 三个独立代码块,体验较差。

## 建议方案

在终端 Markdown 渲染器中注册 Vue 语言语法包,或至少将 `vue` 映射到 `html` 语法作为降级方案。

## 环境

- 操作系统:Windows 10 x64
- 场景:终端对话中 AI 输出的 Markdown 代码块

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the terminal Markdown renderer and its language-registration logic, then check how ```vue blocks are currently handled. Done means Vue blocks receive syntax highlighting, ideally with separate HTML, JavaScript, and CSS regions, or otherwise fall back to HTML highlighting.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, markdown
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.