There's no mechanism to selectively disable what parts of the syntax are parsed, but you can selectively disable the tags they create. For instance, if you remove the LIST
tag it will be impossible to create lists in any way. You'll have to look at the XML to find which tags are being used, unless you want to read the code.
unset($configurator->tags['LIST']);
On the other hand, if you want to selectively disable some markup but not others you'll have to use a tag filter and inspect the markup. For example:
function filterList($tag, $tagText)
{
// No markup was used to create that list: it's not a BBCode
if ($tagText === '')
{
$tag->invalidate();
}
}
$configurator->tags['LIST']->filterChain
->append('filterList($tag, $tagText)')
->setJS('
function filterList(tag, tagText)
{
if (tagText === '')
{
tag.invalidate();
}
}
');
https://s9etextformatter.readthedocs.io/Filters/Callback_signature/