Underscore & Strikethrough

Thanks, I know it already. Is there a Show Strikethrough plugin?

Would be fantastic to show the Strikethough with this plugin as well.

2 Likes

Oh yes. Wanted to ask for that since a while, too.

That would be a perfect opportunity for a pull request :wink:

I tried to add strikethrough (used Skedge :tada:) and it shows up in the edit view, but not in the preview at the bottom. It’s also activated with the same underscore button for now: GitHub - alx3000/ShowUnderline

Yes, Skedge only “highjacks” the drawBackground callback, meaning it only draws into the Edit View as that method would do.

To draw into the bottom preview, you also need to add the drawing code into the reporter plugin callback that handles the bottom preview drawing.

The named plugin should already implement that method (not sure what it is called without checking the code), so just add your code there, too, not just in the the drawBackground method. (Best write a method for all your code and call that method in all the required reporter callbacks.)