getConfig will not run
Closed this issue · 3 comments
Ken-B commented
First of all, thank you very much for sharing this code.
I have a problem with line 37.
File "C:\Coding\Anaconda3\lib\site-packages\markdown\extensions\math.py", line
37, in extendMarkdown
configs = self.getConfigs()
File "C:\Coding\Anaconda3\lib\site-packages\markdown\extensions\__init__.py",
line 28, in getConfigs
return dict([(key, self.getConfig(key)) for key in self.config.keys()])
AttributeError: 'dict_items' object has no attribute 'keys'
If I comment out this line and lines 47-48 then mkdocs works fine and displays mathjax.
I'm on python 3.4.1.
mitya57 commented
What version of Python-Markdown do you have? Can you try with the latest version (2.6.x)?
Ken-B commented
After upgrading to 2.6.2 I no longer get the error, good suggestion!
However, now it does not seem to use the configuration in my mkdocs.yml:
markdown_extensions:
math:
enable_dollar_delimiter: True
because my inline math with $ signs are not caught. Am I using the right configuration?
mitya57 commented
Try changing math
to mdx_math
.