Having math symbols in titles or headings is quite common in scientific writing. Consider the following example:
#import "@preview/decasify:0.11.2": *
#titlecase[Is it $pi$ or $e^x$ in the title]
The equations are incorrectly affected by the titlecasing:

Instead of the expected output:

Having math symbols in titles or headings is quite common in scientific writing. Consider the following example:
The equations are incorrectly affected by the titlecasing:
Instead of the expected output: