Footnote after exclamation point

Weird low priority footnote bug: when you add a footnote to a sentence that ends in an exclamation point, the system returns “[^0123456789]” instead of footnote symbol, both in the body of the note and at the bottom. Problem exists on Mac and iPad Pro with keyboard:

  • Bear Version: 2.3.7
  • OS Version: 15.1.1
  • What were you doing: Adding footnote to a sentence ending with an exclamation point.
  • What feature did you use: CMD-SHIFT-E
  • What happened: Resulted in [^0123456789] instead of a footnote.
  • What did you expect to happen: ^1 footnote reference.

You have to put a space in between the ! and the footnote. I tried your example and I got the same result. I then added a space in between the ! and the footnote, and it worked correctly.

1 Like

I tried testing my theory by using other special characters at the end of a sentence, and then adding a footnote. It always works like it should except when adding the footnote after an exclamation point. I am on IOS 18.1.1 and Bear 2.3.6

1 Like

There appears to be a conflict with the image syntax. Will investigate and implement a fix.

1 Like

Nobody who isn’t French wants to add a space there.

While they’re working around it, you should be able to escape the exclamation point with \:

Here’s a sentence with a footnote\![^0123456789]

[^0123456789]: footnote text

This is the normal technique for “escaping” characters in situations like this in Markdown. You can see it working in Bear itself in this screenshot:

3 Likes

Ah, very clever solution. Thank you!

You can also put the footnote to the left of the punctuation:

…end of line[^1]!