I had a similar issue and my best bet is that it is linked to this issue with the ::: .
:::
The current workaround seems to add blank lines around ::: to circumvent the issue (not great with readability).