Handle Vue 2.6/2.7 compatibility decisions that the generic installer cannot resolve safely.
Use for Vue 2 integration when no bundler-specific edge case dominates. Use markstream-vue2-cli for Vue CLI/Webpack 4 and markstream-vue2-vite for Vite worker imports.
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.@vue/composition-api only for Vue 2.6 code that uses Composition API patterns; Vue 2.7 has built-in support.markstream-vue2/index.css after resets.<MarkdownRender :content="markdown" /> and smooth streaming auto.final, disable pacing/cursor, and enable fade only if desired.nodes only when another layer owns parsing. Use scoped mappings for overrides.<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"
:typewriter="!done"
/>
</template>
Review dependency and compatibility changes. Do not relax rendering safety for untrusted content.