BumbrT / obsidian-reading-comments

Reading comments, for consuming books or large articles in markdown with https://obsidian.md/.
MIT License
45 stars 1 forks source link

Comments shouldn't appear as a block #14

Closed vanbang9710 closed 1 year ago

vanbang9710 commented 1 year ago

I hope it can be inline like the comment plugin

image

BumbrT commented 1 year ago

Appreciate if you suggest HTML markup for comment with CSS based hide/show implementation. I've tried \<span> container, but I don't like behavior when comment disappear when cursor placed between lines. Block solved this problem.

BumbrT commented 1 year ago

You can replace \<div> with the \<span> in multi-line comment and move cursor up and down on top of the comment. Or i can attach gif to demonstrate this odd behavior when cursor placed between lines in inline markup.

BumbrT commented 1 year ago

Added to settings: \<div> or \<span> container for comments. Also added two additional commands: inline and block comment.

vanbang9710 commented 1 year ago

Did you mean the comment placeholder disappearing and reappearing when moving the cursor between 2 lines? It does look a bit annoying but I guess I can endure it.

BumbrT commented 1 year ago

Yes, exactly. Appreciate if someone would be able to find CSS solution for this.