def _encode_code(self, text):
replacements = [<EOL>('<STR_LIT:&>', '<STR_LIT>'),<EOL>('<STR_LIT:<>', '<STR_LIT>'),<EOL>('<STR_LIT:>>', '<STR_LIT>'),<EOL>]<EOL>for before, after in replacements:<EOL><INDENT>text = text.replace(before, after)<EOL><DEDENT>hashed = _hash_text(text)<EOL>self._escape_table[text] = hashed<EOL>return hashed<EOL>
Encode/escape certain characters inside Markdown code runs.
        The point is that in code, these characters are literals,
        and lose their special Markdown meanings.