Skip to content

Transformers not working properly with YAML comments #1007

Open
@brc-dd

Description

@brc-dd

Validations

Describe the bug

Follow up on #934

Downstream issue: vuejs/vitepress#4729 (comment)

Edit: Probably same as #1006

this doesn't work:

```yaml
# foo # [!code ++] [!code focus]
```

this works:

```yaml
# foo // [!code ++] [!code focus]
```

this leaves dangling `#`

```yaml
foo # bar # [!code ++] [!code focus]
```
Image

Reproduction

https://stackblitz.com/edit/vite-gbsar3e7?file=docs/index.md

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions