Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue 当没有写 template 时无法正常高亮 #686

Closed
3 of 5 tasks
WangJincheng4869 opened this issue May 30, 2024 · 1 comment
Closed
3 of 5 tasks

Vue 当没有写 template 时无法正常高亮 #686

WangJincheng4869 opened this issue May 30, 2024 · 1 comment

Comments

@WangJincheng4869
Copy link

Validations

Describe the bug

图片

<sp-with-sidebar>
  <template #default>
    <sp-card title="工单管理"></sp-card>
  </template>
  <template #sidebar>
    <sp-sidebar v-model="activeName">
      <sp-sidebar-pane icon="customer" tip="客户信息">
        <sp-card title="客户信息" :title-underline="false"> 客户信息内容</sp-card>
      </sp-sidebar-pane>
      <sp-sidebar-pane icon="application" tip="应用中心">2</sp-sidebar-pane>
      <sp-sidebar-pane icon="message" tip="消息队列">3</sp-sidebar-pane>
    </sp-sidebar>
  </template>
</sp-with-sidebar>

Reproduction

https://shiki.tmrs.site/

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@antfu
Copy link
Member

antfu commented May 30, 2024

That's how the grammar work, and it's not a Shiki issue. You may use vue-html lang as a workaround.

@antfu antfu closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants