Implement a Markdown-it-py syntax extension to handle RDLFormatCode tags.
Handling RDLFC directly as an extension to Markdown rather a separate preprocessing step will work far more cleanly and without as many quirks as the original implementation in the compiler's get_html_desc() utility.
Eventually, backport this to the compiler somehow.