新增:Markdown 本地文件链接支持 + Shell 语法高亮
Markdown 预览增强: - 支持点击本地文件链接(相对路径)打开对应文件 - 支持链接文本中的加粗/斜体等内联语法 - 锚点链接保持页面内跳转,外部链接新窗口打开 代码高亮增强: - 添加 sh/bash/shell 语言别名映射 - 安装 @codemirror/legacy-modes 支持 .sh 文件语法高亮
This commit is contained in:
@@ -24,3 +24,6 @@ export { php } from '@codemirror/lang-php'
|
||||
export { sql } from '@codemirror/lang-sql'
|
||||
export { markdown } from '@codemirror/lang-markdown'
|
||||
export { java } from '@codemirror/lang-java'
|
||||
|
||||
// Legacy language modes (shell)
|
||||
export { shell } from '@codemirror/legacy-modes/mode/shell'
|
||||
|
||||
Reference in New Issue
Block a user