I’m using Logseq extensively at work and as a manager, there are some things I’d like to hide by default so I don’t accidentally show them when sharing my screen (notes sharing).
A “spoiler tag” would be sufficient to hide these: the text foreground color would be set the same as the background color and then either with a button or on mouseover, the color would be reverted to the original theme color.
In this way, the text is practically invisible by default.
This approach is commonly used in forums when talking about TV shows and similar things, hence the “spoiler tag”
I think that could be done w/ CSS styles. Not the most versed on that topic, I use two other alternatives:
Use a link:
[spoiler tag](whatever it is that you want to hide)
Shows the text when you click on the block AND when you click on the link. The latter takes you to a page titled “whatever it is that you want to hide”
Caveat: the hidden text in these “links” shows in the search feature, so you do not want to be searching while sharing your screen.
Use HTML comment flag:
#Spoiler <?/* whatever it is that you want to hide */?>
Shows the text ONLY when you click on the block
Text does not show in the search feature, unless you make it a page
I didn’t even consider this, but sounds amazing. There would need to be a “fast button” to disable the filtering though, or it would be too annoying to edit the settings file every time
I noticed one limitation is that this doesn’t work with multi-line, so a feature is still desirable, especially when having nested blocks and multiple lines
Love the idea of spoiler tag, in my case I just want to prevent to show some credential in the text. And the work around I found is to use <details> tag, for example
<details> <summary> click to show password </summary>
password here
</details>