Skip to content
Browse files
Handle more of #2205
  • Loading branch information
ralsina committed Jan 4, 2016
1 parent 3fdc49f commit d9ea67f95250f875f140ead91cf86f3a633a4c4d
Showing 1 changed file with 6 additions and 1 deletion.
@@ -257,8 +257,13 @@ def _has_pretty_url(self, lang):
def is_mathjax(self):
"""True if this post has the mathjax tag in the current language or is a python notebook."""
if == 'ipynb':
return True
lang = nikola.utils.LocaleBorg().current_lang
return ('mathjax' in self.tags_for_language(lang)) or ( == 'ipynb')
if self.is_translation_available(lang):
return 'mathjax' in self.tags_for_language(lang)
# If it has math in ANY other language, enable it. Better inefficient than broken.
return 'mathjax' in self.alltags

def alltags(self):

0 comments on commit d9ea67f

Please sign in to comment.