Skip to content
Permalink
Browse files
Handle more of #2205
  • Loading branch information
ralsina committed Jan 4, 2016
1 parent 3fdc49f commit d9ea67f95250f875f140ead91cf86f3a633a4c4d
Showing with 6 additions and 1 deletion.
  1. +6 −1 nikola/post.py
@@ -257,8 +257,13 @@ def _has_pretty_url(self, lang):
@property
def is_mathjax(self):
"""True if this post has the mathjax tag in the current language or is a python notebook."""
if self.compiler.name == 'ipynb':
return True
lang = nikola.utils.LocaleBorg().current_lang
return ('mathjax' in self.tags_for_language(lang)) or (self.compiler.name == '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

@property
def alltags(self):

0 comments on commit d9ea67f

Please sign in to comment.