CSS Strikethrough workaround

[1st] Add Custom CSS

[data-rem-tags~="strikethrough"] .rem-text .highlight-color--red {
	background-color: unset;
	color: ;
	border-bottom: ;
	text-decoration:line-through;
	text-decoration-style: double;
}

set color whatever you want.
In my case I sacrifice red highlight for the sake of Strikethrough

[2nd] Make custom tag : strikethrough

[3rd] Highlight text you want to strikethrough

the sequence is no meaning.

If there are something to fix, please let me know

Cheers!
unnamed

9 Likes

It’s a little complicated and inconvenient. I never managed to implement it. It would be great if the developers implemented this option by default.

Yup, It’s just a workaround. I requested it a long time ago. but I think the strikethrough option has low priority, so it will take a long time to be implemented.
But, hey! Highlight the text you typed to the red color. You might miss just a minor procedure.

1 Like

Browneyedsoul, thank you very much for the hint! Everything worked out.


Yes, besides highlighting the text to the red color. it is necessary to uncheck the “Snippet”.

1 Like

I delete [data-rem-tags~="strikethrough"] from CSS code. So I don’t have to add extra tag, just highlight the text. :grinning:

Hey, @Sky that’s not the right use case. :slightly_smiling_face:
if you delete the data-rem-tags selector, you eliminate all the red highlight color into strikethrough. That’s not ideal for general users.

Please check here for latest update

1 Like

That’s true. :smiley:
I deleted it because I thought I would never use the purple highlight color.

2 Likes

Modified the CSS a little (removed .rem-text) to allow a keyboard-only workflow.

Pasted Rems below so you can copy paste easily :

  • Strikethrough
    • test test test
      • red highlight on selection (select text > mouse > red highlight)
      • tag
    • test test test
      • red highlight on rem (select rem > “red” or “clear”) (keyboard-only)
      • tag
    • test test test
      • red highlight on selection and entire rem
        • rem overrides text of course
      • tag
    • [data-rem-tags~=“strikethrough”] .highlight-color–red {
      background-color: unset;
      color: ;
      border-bottom: ;
      text-decoration:line-through;
      text-decoration-style: double;
      }
2 Likes