Show More
@@ -23,10 +23,10 class LatexTransformer(ActivatableTransformer): | |||||
23 | Returns modified cell and resource dict. |
|
23 | Returns modified cell and resource dict. | |
24 | """ |
|
24 | """ | |
25 | if hasattr(cell, "source") and cell.cell_type == "markdown": |
|
25 | if hasattr(cell, "source") and cell.cell_type == "markdown": | |
26 |
cell.source = r |
|
26 | cell.source = rm_math_space(cell.source) | |
27 | return cell, other |
|
27 | return cell, other | |
28 |
|
28 | |||
29 |
def r |
|
29 | def rm_math_space(text): | |
30 | """ |
|
30 | """ | |
31 | Remove the space between latex math commands and enclosing $ symbols. |
|
31 | Remove the space between latex math commands and enclosing $ symbols. | |
32 | """ |
|
32 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now