Browse Source

handle math markup in drafts

howthebodyworks 8 years ago
parent
commit
01c103454d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      render_math/math.py

+ 4 - 1
render_math/math.py

@@ -341,7 +341,10 @@ def process_rst_and_summaries(content_generators):
 
     for generator in content_generators:
         if isinstance(generator, generators.ArticlesGenerator):
-            for article in generator.articles + generator.translations:
+            for article in (
+                    generator.articles +
+                    generator.translations +
+                    generator.drafts):
                 rst_add_mathjax(article)
                 #optionally fix truncated formulae in summaries.
                 if process_summary.mathjax_script is not None: