Skip to content

Markdown files report element is missing end-tag in valid code #5694

@Hebilicious

Description

@Hebilicious

Vue - Official extension or vue-tsc version

3.1.0

VSCode version

1.104

Vue version

3.5.12

TypeScript version

5.9.3

System Info

System:
    OS: macOS 26.0
    CPU: (8) arm64 Apple M1
    Memory: 87.67 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.4.0 - ~/.proto/shims/node
    npm: 10.9.2 - ~/.proto/shims/npm
    pnpm: 9.15.0 - ~/.proto/shims/pnpm
    bun: 1.2.22 - ~/.proto/shims/bun
    Deno: 2.5.0 - ~/.proto/shims/deno
  Browsers:
    Chrome: 140.0.7339.214
    Edge: 140.0.3485.94
    Safari: 26.0

package.json dependencies

"dependencies": {
    "@vueuse/components": "^11.2.0",
    "vitepress": "^1.5.0",
    "vue": "^3.5.12"
  },
  "devDependencies": {
    "@biomejs/biome": "^1.9.4",
    "@types/bun": "^1.1.13",
    "dprint": "^0.47.5",
    "typescript": "^5.9.3"
  },

Steps to reproduce

Start vitepress, and create a markdown file with this content

<script lang="ts" setup>
const createAbilityList = (arr: string[]) => arr
const talents = createAbilityList([])
</script>

::: info
For more information about Serenity refer to the [Storm, Earth and Fire section.](./sef)
:::

What is expected?

No parsing error

What is actually happening?

Vscode report : element is missing end tag (vue 24)

I've isolated the issue to this test page.

Image

Link to minimal reproduction

No response

Any additional comments?

I ran into this after updating my vue extension to the latest version.
This bug doesn't happen in 3.0.0 or in 2.x, so I'm assuming it sneaked out between 3.0 and 3.1

I hope you'll be able to reproduce it.
It seems the issue is caused by a combination of the ::: syntax in the body and the [] in the script tags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good reproduction ✨This issue provides a good reproduction, we will be able to investigate it first🔨 p3-minor-bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions