Things I have tried
What I’m trying to do
I used block reference, but I have a code every time, I want to hide it, what to do
I used block reference, but I have a code every time, I want to hide it, what to do
@jone_simth I use the following CSS snippet to make block IDs transparent, and displaying just the “ID” string instead:
.CodeMirror-code > :not(.CodeMirror-activeline) .cm-blockid {
color: transparent;
}
.CodeMirror-code > :not(.CodeMirror-activeline) .cm-blockid::before {
content: "ID";
color: var(--text-muted);
}
You can adapt this to make block IDs appear different or disappear completely. E.g., you can use font-size: 0
in the first part, and font-size: 50%
in the second.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.