Skip to content

bug: incremental edit touches yaml metadata #114

@vezwork

Description

@vezwork

incremental edits are now doing this to my yaml frontmatter (when I change a different part of the doc):
From:

---
format: q2-debug
render-components:
  - comment_inline.tsx
  - simple_strings.tsx
  - comments.tsx
  - drag_div.tsx
---

to:

---
format: q2-debug
render-components:
  - "comment\\_inline.tsx"
  - "simple\\_strings.tsx"
  - comments.tsx
  - "drag\\_div.tsx"
source-location: full
---

It doesn't cause any immediate problems with parsing or rendering or anything, but it breaks locality of edits and wouldn't merge nice.

TODO for me: make this easier to reproduce. We need to have some easy way to try incremental editing.

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