The current codehilite HTML wraps text or syntax-highlighted span elements inside <code>…</code> tags. However, older messages (the latest example found from April 2020 on CZO, so any message before then) don’t include this <code>…</code> wrapper, which is currently expected:
The current
codehilite
HTML wraps text or syntax-highlighted span elements inside<code>…</code>
tags. However, older messages (the latest example found from April 2020 on CZO, so any message before then) don’t include this<code>…</code>
wrapper, which is currently expected:https://github.com/zulip/zulip-flutter/blob/33c365af73c8e2a9342d71b16a6fc967e6a35a84/lib/model/content.dart#L996-L998
Related discussion: https://chat.zulip.org/#narrow/channel/243-mobile-team/topic/older.20codehilite.20blocks.3B.20html.20without.20.3Ccode.3E.3C.2Fcode.3E/near/1968837