I am new here. I have noticed a problem in the folding mechanism of code when using the LaTeX-bundle in textmate (version: TextMate version 2.0-beta.7.1 ). I use textmate only for writing LaTeX documents. so, I have now idea if this is caused by textmate or specifically by the latex-bundle.

most \section{} or \subsection{} commands are "foldable", i.e. the little triangle symbol appears next to the line number. however, the triangle disappears when I include another command in the same line. this happens for example, when the section heading contains italics.

\section{heading of this section} --> this will produce foldable code.
\section{heading of \textit{this} section} --> this will fail to produce foldable code.

I would like to ask if this is a known problem and if anyone has a solution to this?

thank you in advance,