-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Description:
In the current implementation of the YAML method to pass props to Vue components using MDC, the ---
identifier, which is used to separate the properties, is causing incorrect parsing in VSCode’s outline view.
When a YAML block is used in Vue components (as shown below), the line above ---
is mistakenly being interpreted as a second-level heading in the outline view, which leads to confusion in the structure of the document.
Example:
::icon-card
---
icon: IconNuxt
description: Harness the full power of Nuxt and the Nuxt ecosystem.
title: Nuxt Architecture.
---
::
Steps to Reproduce:
- Create a Vue component using the YAML method for passing props as shown above.
- Open the markdown file in VSCode.
- Check the outline view where the line above
---
is being misinterpreted as a heading (e.g.,##
).
Expected Behavior:
The ---
identifier and the properties defined should be treated as part of the YAML block, and the line above ---
should not be mistaken for a second-level heading in the outline view.
Possible Solution:
Review and adjust the parsing logic for the outline view in VSCode to handle YAML syntax correctly in the context of Vue components.