If I paste something that has multiple dollar signs in it, Capacities will always create a Latex block. For example, I pasted $40 for this option and $50 for this option
and it creates: [40 for this option and ]50 for this option
where the square brackets represent the Latex block
Desired change: only create a latex block if the last dollar sign does not follow a space or newline
Another desired change: when removing latex styling, the $ signs should be put back in