What I’m trying to do
I’m using this plugin: github. com/st3v3nmw/obsidian-spaced-repetition (This is broken because I’m not allowed to insert links).
I really like the flashcard feature but it generates a comment underneath my text that I find distracting, that looks like this:
I want to change the comment style so that it encodes to use %% instead of ()
Things I have tried
Using this post: https://forum.obsidian.md/t/css-differentiate-between-obsidian-and-html-comments/71893/5 I've made %% comments invisible, which has worked, using this code:
.is-live-preview .cm-line:not(.cm-active):has(.cm-comment-start, .cm-comment-end) * {
visibility: hidden;
}
But now I want to change the plugin to write its comments as %%. I tried looking through the 'data.json', 'styles' and 'manifest.json', for the plugin, for the key words they used '.cm-comment' but it came up with nothing. I have no idea how coding works but I'm guessing it's written as something else? I'd appreciate if someone could explain how to change this.
This is what the comments look like:
<!- -SR:!2026-01-08,3,252!2026-01-08,3,252!2026-01-08,3,252
-->
(It didn’t show up in the original post, and I can’t edit it.)
Use this CSS to hide html comments
.is-live-preview .cm-line:not(.cm-active):has(.cm-comment) * {
visibility: hidden;
}
Hi,
I appreciate the answer, but that wasn’t what I was asking. The instructions to make all comments invisible was in the original post I referred to:
What I’m asking is to change the coding of the Obsidian Space Repetition plugin to encode its comments with the (%%) style instead of the (<!-) style, because I already have the CSS snippet for making (%%) comments invisible. I still want to be able to see (<!-) comments. (Either that, or to make (<!-) comments invisible, while the (%%) remains visible). I want to be able to use one sort of comment, while whichever the plugin uses (which is currently (<!-)), is invisible, so that the plugin’s comments don’t visually populate my notes.
I’d put in a request on the Obsidian Space Repetition’s GitHub page (if there isn’t one already).
@Querulant We know you are trying to help, but please don’t post chatbot answers in this forum. Thanks.
On Discord, we have an trigger-response:
@user Thanks for trying to help! However, asking ChatGPT or any other LLMs (Large Language Models) is discouraged in our community because their responses often contain outdated information or straight-up misinformation. If you don’t know the answer, that’s fine! Other community members can help with unanswered questions.
This one or future posts may be removed by the mods or team.
Okay, I’ll do that. Thank you.