code: def render_math(self, token):
          
          if token.content.startswith('$$'):
              return self.render_raw_text(token)
          return '${}$'.format(self.render_raw_text(token))
docs: Ensure Math tokens are all enclosed in two dollar signs.