Skip to content

Commit

Permalink
Improving docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Apr 27, 2018
1 parent 174d1be commit 74b050b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nikola/post.py
Expand Up @@ -343,8 +343,11 @@ def _has_pretty_url(self, lang):

@property
def is_mathjax(self):
"""Return True if this post has has_math set to True, hast set the
mathjax tag in the current language or is a python notebook."""
"""Return True if this post has has_math set to True or is a python notebook.
Alternatively, it will return True if it has set the mathjax tag in the
current language and the USE_TAG_METADATA config setting is True.
"""
if self.compiler.name == 'ipynb':
return True
lang = nikola.utils.LocaleBorg().current_lang
Expand Down

0 comments on commit 74b050b

Please sign in to comment.