To type symbols like a function is restricted to a subset of the domain, like "f|*{A}", I would like to have a long straight line after “f”. I always use $f\bigg|*{}$ to deal with it. However, I noticed that if I want to type this in a bracket, the bracket won’t automatically change its size even if I use \left \right commend. For example, if I type an inline formula $$\left( sum \right) $$, then the summation symbol with the \left \right command will make the left and right brackets large. However, if I type an inline formula $$\left( f\bigg_{A} \right) $$, then the left and right brackets will remain small even if I used \bigg in the brackets.

Thus, I would like to ask if is there a way to deal with it. I find out that if I replace $\bigg$ with $\Huge$, the brackets can enlarge automatically, however, in obsidian, I find that if I type $\Huge$ then all the things after this “Huge” will be huge, since I just hope the straight line “|” to be larger, I didn’t use this method.

Any help on this? Thanks!