CSS Snippet to add line-through check list

I am using SIRvb’s ITS theme but the theme removed the line-through when an item is checked. I managed to find a CSS Snippet solution for the reading view but I haven’t been able to get it to work in live preview view. Can anybody help me?

Things I have tried

.markdown-preview-view ul > li.task-list-item.is-checked {
text-decoration: line-through;
font-weight: 500
}

What I’m trying to do

Make a CSS snippet to add a line-through to a checked item in a check list when a theme has removed that ability.

See if this works for you

div[data-task="x"] > span.cm-list-1 {
    text-decoration: line-through !important;
    font-weight: 500 !important;
}
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.