Markdown extension: inline wrap functions doesn't recognize BBCode tags with empty content anymore

The upgrade to Markdown.it v13 broke empty inline BBCodes The behavior of the processDelimiters function changed. It doesn’t update the end attribute of our BBCode delimiters anymore when the BBCode doesn’t have any content.

I’ve created a PR that restores the previous behavior and adds a test.

https://github.com/discourse/discourse/pull/18276

2 Likes