From: Vladimír Vondruš Date: Sun, 15 Sep 2024 21:49:39 +0000 (+0200) Subject: m.math: minor cleanup. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=c1e80e4fccb63e31b0b7a080ceae40e28caad332;p=blog.git m.math: minor cleanup. --- diff --git a/plugins/m/math.py b/plugins/m/math.py index 6cad98c2..34138528 100644 --- a/plugins/m/math.py +++ b/plugins/m/math.py @@ -111,8 +111,7 @@ class Math(rst.Directive): node = nodes.raw(self.block_text, latex2svgextra.patch(content, svg, None, ''), format='html') node.line = self.content_offset + 1 self.add_name(node) - container = nodes.container(**self.options) - container['classes'] += ['m-math'] + container = nodes.container(classes=['m-math'] + classes, **self.options) container.append(node) return [container]