summaryrefslogtreecommitdiff
path: root/sphinx/directives/patches.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/directives/patches.py')
-rw-r--r--sphinx/directives/patches.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/directives/patches.py b/sphinx/directives/patches.py
index ee8014aa6..c102f3461 100644
--- a/sphinx/directives/patches.py
+++ b/sphinx/directives/patches.py
@@ -165,6 +165,7 @@ class MathDirective(SphinxDirective):
option_spec = {
'label': directives.unchanged,
'name': directives.unchanged,
+ 'class': directives.class_option,
'nowrap': directives.flag,
}
@@ -175,6 +176,7 @@ class MathDirective(SphinxDirective):
latex = self.arguments[0] + '\n\n' + latex
label = self.options.get('label', self.options.get('name'))
node = nodes.math_block(latex, latex,
+ classes=self.options.get('class', []),
docname=self.env.docname,
number=None,
label=label,