Show More
@@ -84,14 +84,14 b' class MathBlockLexer(mistune.BlockLexer):' | |||||
84 | rules = MathBlockGrammar() |
|
84 | rules = MathBlockGrammar() | |
85 | super(MathBlockLexer, self).__init__(rules, **kwargs) |
|
85 | super(MathBlockLexer, self).__init__(rules, **kwargs) | |
86 |
|
86 | |||
87 |
def |
|
87 | def parse_block_math(self, m): | |
88 | """Parse a $$math$$ block""" |
|
88 | """Parse a $$math$$ block""" | |
89 | self.tokens.append({ |
|
89 | self.tokens.append({ | |
90 | 'type': 'block_math', |
|
90 | 'type': 'block_math', | |
91 | 'text': m.group(1) |
|
91 | 'text': m.group(1) | |
92 | }) |
|
92 | }) | |
93 |
|
93 | |||
94 |
def |
|
94 | def parse_latex_environment(self, m): | |
95 | self.tokens.append({ |
|
95 | self.tokens.append({ | |
96 | 'type': 'latex_environment', |
|
96 | 'type': 'latex_environment', | |
97 | 'name': m.group(1), |
|
97 | 'name': m.group(1), |
General Comments 0
You need to be logged in to leave comments.
Login now