As the title says, <details> sections are not handled in markdown documents - the closing </details> tags are moved to the line immediately after opening tag. This leaves the contents (that are supposed to be hidden behind the details heading) exposed.
This makes translating (or even updating) any document that makes use of collapsible sections problematic.
See BJReplay/ha-solcast-solar#445 as an example, and specifically BJReplay/ha-solcast-solar@d1e3fed as the manual commit to fix the issue.
BJReplay/ha-solcast-solar@3bc8abd is the original GitLocalize commit that includes the translation, that also moves the closing </details> tag immediately below the opening <details> tag for every collapsible section in the .md document.
This was an already translated (and already fixed document). The additional translation was minor, did not impact any of the collapsible sections, yet the details tags were all corrupted.