def code_start(self, code, specifier=None): if specifier == "lilypond": import highlight2html self._html.append(highlight2html.html_text(code, full_html=False)) else: self.tag('code') self.tag('pre') self.text(code)