xfy
763edc300d
feat(editor): NodeView 适配 onRunCode 协议(extractLang + overridesJson 提取)
runCode 改传纯语言名(extractLang) + overrides JSON 字符串(extractOverridesJson),
对齐 Task 4 Rust 桥接 RunCodeOptsJs(language/source/overrides_json):
- highlight.ts: 新增 extractOverridesJson,对齐后端 parse_fence_info 取以 { 开头的 token
- code-block-view.ts: RunCodeOpts 加 overridesJson 字段,runCode 改传 extractLang/extractOverridesJson 提取结果
- index.ts: EditorOptions.onRunCode 类型同步加 overridesJson
- 测试: extractOverridesJson 6 例 + code-block-view 点击断言更新(纯语言名 + overridesJson)
2026-07-06 18:17:33 +08:00
..
2026-07-06 11:45:14 +08:00
2026-07-02 17:54:46 +08:00
2026-07-06 18:17:33 +08:00
2026-07-03 13:42:17 +08:00
2026-07-02 18:02:52 +08:00
2026-07-02 18:02:52 +08:00
2026-07-06 15:45:42 +08:00
2026-07-02 18:02:52 +08:00
2026-07-02 17:50:52 +08:00