From 49a9964ab927777b00064b5a0f731f7dddc72432 Mon Sep 17 00:00:00 2001 From: milde Date: Tue, 14 Aug 2012 10:54:53 +0000 Subject: [PATCH] Fix [ 3556388 ] Mathjax does not work with rst2s5. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7494 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- HISTORY.txt | 4 ++++ docutils/writers/s5_html/__init__.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/HISTORY.txt b/HISTORY.txt index 19123c04a..54c984c36 100644 --- a/HISTORY.txt +++ b/HISTORY.txt @@ -41,6 +41,10 @@ Changes Since 0.9.1 - Apply [ 3555160 ] ensure order of "otherlanguages". +* docutils/writers/s5_html/__init__.py + + - Fix [ 3556388 ] Mathjax does not work with rst2s5. + Release 0.9.1 (2012-06-17) ========================== diff --git a/docutils/writers/s5_html/__init__.py b/docutils/writers/s5_html/__init__.py index 37bfa0d90..6ac0fd4e3 100644 --- a/docutils/writers/s5_html/__init__.py +++ b/docutils/writers/s5_html/__init__.py @@ -285,6 +285,8 @@ class S5HTMLTranslator(html4css1.HTMLTranslator): self.html_prolog.append(self.doctype) self.meta.insert(0, self.content_type % self.settings.output_encoding) self.head.insert(0, self.content_type % self.settings.output_encoding) + if self.math_header: + self.head.append(self.math_header) header = ''.join(self.s5_header) footer = ''.join(self.s5_footer) -- 2.11.4.GIT