import markdown import cgi class MathJaxPattern(markdown.inlinepatterns.Pattern): def __init__(self, md): markdown.inlinepatterns.Pattern.__init__(self, r'(?