vscode-mdc icon indicating copy to clipboard operation
vscode-mdc copied to clipboard

Frontmatter Comments not working as expected

Open oppenheimer- opened this issue 9 months ago • 1 comments

When trying to comment one or multiple lines in YAML frontmatter by pressing ctrl+# the expected result is:

---
# title: "Test Heading"
---

but it places HTML comments

---
<!-- title: "Test Heading" -->
---

oppenheimer- avatar Jul 07 '25 10:07 oppenheimer-

I think we could use some of the utils from the monarch-mdc > formatter-utils.ts to detect which type of block the cursor is in (e.g. YAML or non-YAML) and toggle the appropriate comment format

adamdehaven avatar Jul 16 '25 01:07 adamdehaven