计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
markstream-vue2-vite【效率与协作】Integrate markstream-vue2 into Vue 2 plus Vite with bundled worker imports, CSS ordering, Composition API compatibility, and safe streaming defaults.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use Vite-native worker bundling while preserving Vue 2 compatibility and rendering safety.
Use when the host is Vue 2 with Vite and needs bundled Mermaid or KaTeX workers. Use the generic Vue 2 skill when worker/bundler behavior is irrelevant.
Before changing dependencies or source files, inspect the existing package manager and project conventions, preview the intended edits, and obtain explicit user approval.
markstream-vue2/index.css after reset, Tailwind, or UnoCSS layers.?worker or ?worker&inline imports only when needed.@vue/composition-api only for Vue 2.6 code requiring it.content with smooth streaming for chat; set final and disable pacing/cursor for history.nodes only for externally owned parsing. Keep HTML safe and Mermaid strict.<script>
import MarkdownRender from 'markstream-vue2'
import 'markstream-vue2/index.css'
export default {
components: { MarkdownRender },
props: { content: String, done: Boolean },
}
</script>
<template>
<MarkdownRender
:content="content"
:final="done"
:fade="done"
/>
</template>
Review worker source, CSP, dependency changes, and bundle impact. Do not relax safe rendering defaults.