From fdcc4cd2c631b535f08ecf2091c0bae44e657eeb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 11 Jun 2018 15:28:57 +0200 Subject: [PATCH] m.math: properly reset formula counter on page breaks. Otherwise the output was not deterministic anymore. --- pelican-plugins/m/math.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pelican-plugins/m/math.py b/pelican-plugins/m/math.py index 188d57c1..067b57d8 100644 --- a/pelican-plugins/m/math.py +++ b/pelican-plugins/m/math.py @@ -71,8 +71,7 @@ class Math(rst.Directive): return _nodes def new_page(content): - global counter - counter = 0 + latex2svgextra.counter = 0 def math(role, rawtext, text, lineno, inliner, options={}, content=[]): # Otherwise the backslashes do quite a mess there -- 2.30.2