Fevol / obsidian-criticmarkup

Annotate notes with comments and suggestions using CriticMarkup in Obsidian
MIT License
136 stars 2 forks source link

Style wrong in Global view #10

Open kinglion580 opened 6 months ago

kinglion580 commented 6 months ago

comment only show content, but in Global view, for author, it will show {"author":"what"}@@xxxx

image

expect: show only content in Global view.

Fevol commented 6 months ago

Thanks for the issue report! Does this issue still occur after you reload the app/plugin? Also, what settings did you have enabled when you took this screenshot?

kinglion580 commented 6 months ago

Thanks for your reply. yes, reload or restart obsidian, it stll occur. my settings are below: image image image image image image

Fevol commented 6 months ago

Thanks for sharing the settings! I don't think anything is wrong in your end, as far as I can see.

My best guess is that the text property of the range got messed up at some point, and the metadata got stored together with the text, and then this data got stored in the database (hence why your range in the Global View has the author both in the metadata (on top), as in the text).

I haven't been able to reproduce it throughout my testing, so either it requires a very specific set of inputs, or it is essentially random and needs to be solved structurally.

Either way, I will need to rewrite the text parsing code a bit.