浏览代码

handle math markup in drafts

howthebodyworks 8 年之前
父节点
当前提交
01c103454d
共有 1 个文件被更改,包括 4 次插入1 次删除
  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: