Bug/nit: Strikethrough doesn't handle tilde (~)

  • Bear Version: Version 2.9.3 (14672)
  • OS Version: Tahoe 26.7.1 (25G241)
  • What were you doing:
  • What feature did you use:
  • What happened:
  • What did you expect to happen:


For reproducibility, you can copy:

### Bug: Strikethrough doesn't handle tilde
Before:
We expect this task to take ~2h
After, when struck through, gives us:
~~We expect this task to take ~2h~~

Slightly annoying because we have to manually add a backslash.

### Correct: Bold handles asterisk
In constrast, this works because asterisks (*) are handled properly:
5 * 6
when emboldened, gives us
**5 * 6**

Excellent detailed bug report! We will have a look at it.

Actually, this works as expected and according to commonmark. It is read as two nested underlines, the first one ~2h~, and the second one ~We expect this task to take ~2h~~. This leaves the leading ~.

This is actually the same as with emphase and strong. If you remove the space between the * and 6 you get the same situation (**5 *6** having two nested emphases leaving the leading *). In the same way, if you add a space before the inner ~, it will read as a bold.