I've added this code to extend.php
(new Extend\Formatter)
->configure(function (Configurator $config) {
$config->BBCodes->addCustom(
'[SMART src={URL;useContent} height={NUMBER} foo={NUMBER} width={NUMBER} /]',
'<smart-img src="{@src}" foo="{@foo}" width="{@width}" height="{@height}"></smart-img>'
);
}),
The content of the message contains
<SMART src="https://pbs.twimg.com/media/F9ZLEByXUAAi9DQ.jpg" height="600" width="800"
foo="123"/>
but in the markup it is steadily coming
<smart-img src="https://pbs.twimg.com/media/F9ZLEByXUAAi9DQ.jpg" foo="" width="800" height=""></smart-img>
Please help! What's wrong!? 🤔