Can we add strikethrough button along with bold, italic and underline buttons? I use anki myself and whenever I need this I go to HTML editor and add tag but maybe it would be useful to have a button for that?
Indeed, it would be great!
I think this would still be a good addition as I regularly use strikethroughs to show mistakes I could make in exam questions and the correct answers, with visual cues. This should not add any extra complexity as it just needs to use the <del> element with the same mechanics as the <b>/<u>/<i> elements.
Check out Mini Format Pack. It has a strikethrough button.
Thank you - that’s just what I needed.
I don’t understand why basic HTML tags for text formatting couldn’t be integrated directly into Anki, similar to how it is done with bold or underline. There are buttons for ‘Superscript’ or ‘Subscript’ (which I haven’t used), but there is a lack of a simple strikethrough. Is there a lot of programming work involved in this?
It’s more about not wanting to present a load of buttons that the average user is unlikely to use. If I could go back in time I would avoid adding superscript/subscript, as they can be done with LaTeX or MathJax instead.
I can agree when it comes to superscript/subscript. I have been using anki for a long time and I don’t remember a single case when I needed to use them. Yet they have two buttons in UI while strikethrough has none and I needed it many times.
I could try to implement strikethrough based on the current implementation of bold or underline. However, I would need to know how to run and debug Anki within an IDE; Rust and Python are not my technological stack.
I took a look at https://github.com/ankitects/anki/blob/main/docs/development.md, but more information on how to launch the debugger would be helpful ;).
As mentioned above, this is more about sticking to the most commonly-used buttons than about the work required to implement a strikethrough button. To be honest, I find it a bit hard to imagine many cases where strikethrough might be useful if you’re following the minimum information principle: Effective learning: Twenty rules of formulating knowledge - SuperMemo
I understand your concerns about using strikethrough in the context of the 20 rules. However, I believe strictly adhering to them doesn’t always make sense. For instance, we don’t use the Present Perfect Continuous tense to express ‘how much/many.’ So, when I provide an example sentence, I like having strikethrough an incorrectly grammatical example next to a grammatically correct one.