mikitex70 / plantuml-markdown

PlantUML plugin for Python-Markdown
BSD 2-Clause "Simplified" License
196 stars 55 forks source link

I can't import the extension after the rename to "plantuml-markdown" #23

Closed hjalves closed 5 years ago

hjalves commented 5 years ago

I can't use the extension with the new name.

Error in the shell:

In [3]: import plantuml-markdown                                                                                                                                                                                               
  File "<ipython-input-3-116cbb124db8>", line 1
    import plantuml-markdown
                   ^
SyntaxError: invalid syntax

Error in mkdocs serve:

INFO    -  Building documentation... 
ERROR   -  Config value: 'markdown_extensions'. Error: Failed loading extension "plantuml-markdown". 

Aborted with 1 Configuration Errors!

Am I missing something? I'm feeling a bit dumb. Thank you

mikitex70 commented 5 years ago

You are right, my mistake: I need to rename the file to plantuml_markdown.py to be able to import it. Another change that would broken current usages... I have to be more careful in development. I would try to make a new release this weekend.

mikitex70 commented 5 years ago

But with mkdocs it should work: my mkdocs.yml is like:

markdown_extensions:
    - plantuml-markdown:
        server: http://www.plantuml.com/plantuml

I'm using mkdocs:1.0.4

mikitex70 commented 5 years ago

Module renamed. Plugin configuration in markdown_py must be changed too. Thanks for pointing out to me this mistake.