markstream-vue2

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Markstream Vue 2

Markstream Vue 2

Use this skill when the host app is Vue 2 and not specifically a Vue CLI / Webpack 4 edge case.
当宿主项目为Vue 2且不属于Vue CLI/Webpack 4特殊场景时,使用本技能。

Workflow

工作流程

  1. Confirm the repo is Vue 2.6 or 2.7.
  2. Install
    markstream-vue2
    .
    • Add
      @vue/composition-api
      only when the repo is Vue 2.6 and uses Composition API patterns.
  3. Import
    markstream-vue2/index.css
    after resets.
  4. Start with
    <MarkdownRender :content="markdown" />
    .
  5. Use scoped custom component mappings when the task needs overrides or trusted tags.
  6. Validate with the smallest useful dev or build command.
  1. 确认仓库为Vue 2.6或2.7版本。
  2. 安装
    markstream-vue2
    • 仅当仓库为Vue 2.6且使用Composition API模式时,才添加
      @vue/composition-api
  3. 在样式重置后导入
    markstream-vue2/index.css
  4. 从使用
    <MarkdownRender :content="markdown" />
    开始。
  5. 当任务需要覆盖默认配置或使用可信标签时,使用作用域内的自定义组件映射。
  6. 通过最小可用的开发或构建命令进行验证。

Default Decisions

默认决策

  • Vue 2.7 can use built-in Composition API support.
  • Vue 2.6 needs
    @vue/composition-api
    only when the codebase actually relies on Composition API.
  • If the repo is Vue CLI / Webpack 4, prefer
    markstream-vue2-cli
    .
  • If the repo is Vue 2 plus Vite worker imports, prefer
    markstream-vue2-vite
    .
  • Vue 2.7可使用内置的Composition API支持。
  • 仅当代码库实际依赖Composition API时,Vue 2.6才需要
    @vue/composition-api
  • 如果仓库是Vue CLI/Webpack 4环境,优先使用
    markstream-vue2-cli
  • 如果仓库是Vue 2搭配Vite worker导入的环境,优先使用
    markstream-vue2-vite

Useful Doc Targets

实用文档目标

  • docs/guide/vue2-quick-start.md
  • docs/guide/vue2-installation.md
  • docs/guide/vue2-components.md
  • docs/guide/troubleshooting.md
  • docs/guide/vue2-quick-start.md
  • docs/guide/vue2-installation.md
  • docs/guide/vue2-components.md
  • docs/guide/troubleshooting.md