A discussion on the “Insert Date” feature in Discourse revealing a rendering issue when mixed with HTML tags. hellekin discovered the bug and identified the cause as HTML tags with attributes preceding the [date] syntax.
The issue was later determined to be a limitation of textPostProcess and a sanitizer bug specific to inline tags starting with <a, including <abbr>. joffreyjaffeux and sam investigated the issue, with sam eventually fixing the bug through a commit to the Discourse repository.
I tried to reproduce here, using multiple dates, and inserting code fences blocks, but it didn’t reproduce until https://try.discourse.org/t/testing-insert-date-bug/1130/2 (this link will become obsolete by tomorrow, but it shows like the screenshot above.)
Cause
Finally I found the cause of the bug: the failing render follows an HTML tag with an attribute!