From: Vladimír Vondruš Date: Mon, 11 Jun 2018 13:28:57 +0000 (+0200) Subject: m.math: properly reset formula counter on page breaks. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=fdcc4cd2c631b535f08ecf2091c0bae44e657eeb;p=blog.git m.math: properly reset formula counter on page breaks. Otherwise the output was not deterministic anymore. --- 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