Another issue of the same kind, might be related:
Consider the following markdown:
[b]Should be bold[/b]
In the composer preview and in the cooked post if the image is too small to be lightboxed, the result is:

But, in the cooked post if the image is lightboxed, the result is:
