What I’m trying to do
Hi everyone - as stuff like Dataview doesn’t work in Publish, I’d like to hide the Dataview code blocks on my notes (and other types of text) only if a note is being viewed on my published site while keeping other parts of the same note visible. I know how to hide stuff (either %% or <!— stuff -->), but so far I’ve not managed to find a solution that doesn’t also hide the parts for me in preview mode.
Things I have tried
I’ve tried googling around and searching the forums as well as Discord to no avail. I was thinking about fooling around with JavaScript or css but with my limited coding knowledge I don’t know where to start.
Any help would be greatly appreciated!