MarkdownDocument.withBody hergebruikt frontmatter-metadata als de nieuwe body zelf --- draagt #1682
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck#1682
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wat er misgaat
withBody(nextBody)bouwtfrontMatter + nextBodymaar houdt_frontMatterMetadatavan het oude document. BegintnextBodyzelf met een YAML-hek, dan issourcedubbele frontmatter terwijlstyleName/tlp/fieldsnog de oude kop beschrijven.withSourceinvalidates wél.De methode wordt in
lib/nog niet aangeroepen (alleen gedeclareerd), maar is publiek API van het documentmodel.Waar het zit
lib/models/markdown_document.dart.Wat het met het formaat doet
Een aanroeper die de body vervangt door tekst mét
---schrijft inconsistente bytes vs getters.Regressie
withBodyviawithSourceof metadata herberekenen; test metnextBodydie met---\ntheme: x\n---\nbegint.