platers / obsidian-linter

An Obsidian plugin that formats and styles your notes with a focus on configurability and extensibility.
https://platers.github.io/obsidian-linter/
MIT License
1.17k stars 81 forks source link

Bug: Yaml Block scalar content deleted after sort #632

Open PaulPichaureau opened 1 year ago

PaulPichaureau commented 1 year ago

Block Scalar are deleted after sort.

E.g.

---
name: John
husband: Tim
biography: |
  A very nice chap. A very nice chap. A very nice chap. A very nice chap. A very nice chap. A very nice chap. A very nice chap. A very nice chap.
---

become, after sort,

---
biography: |
husband: Tim
name: John
---

The content of the "biography" key has been deleted.

Device

pjkaufman commented 1 year ago

Thanks for reporting this. This makes sense as something that has not been accounted for. I will need to look at the YAML block scalar and see what its syntax looks like to add it to how YAML values are pulled.

pjkaufman commented 1 year ago

I am not finding a good definition for what getting a key looks like. It will take some time for me to determine what is going on here and how to best address it.