JoshyPHP well, you can't use default TeX delimiters (like $$...$$, \[...\]) with that solution. If user decides to use BBCodes-only then the extension will skip the findExpressions() function and will follow your logic already. Besides, i don't want to wrap expressions with the code block for styling considerations. I'm curious about why did you recommend me the code wrapper when you have ignoreTags method?
JoshyPHP I don't understand why KaTeX would interact with BBCode markup. Don't you run it on HTML code?
I'm telling it to find and render expressions between [bbcode]...[/bbcode]. I can use any delimiters that i want even this one heyKYLO...hiKYLO. But it won't work with the Markdown obviously.