Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdocs serve no longer works with mkdocs-markmap #39

Closed
andynameistaken opened this issue Jul 18, 2022 · 2 comments
Closed

mkdocs serve no longer works with mkdocs-markmap #39

andynameistaken opened this issue Jul 18, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@andynameistaken
Copy link

Error log when mkdocs-markmap is enabled in mkdocs.yml:

❯ mkdocs serve
INFO     -  Building documentation...
INFO     -  Cleaning site directory
ERROR    -  Error reading page 'index.md': extendMarkdown() missing 1 required positional argument: 'md_globals'
Traceback (most recent call last):
  File "/Users/andy/Devel/code-vault2/vaultenv/bin/mkdocs", line 8, in <module>
    sys.exit(cli())
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/mkdocs/__main__.py", line 181, in serve_command
    serve.serve(dev_addr=dev_addr, livereload=livereload, watch=watch, **kwargs)
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/mkdocs/commands/serve.py", line 63, in serve
    config = builder()
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/mkdocs/commands/serve.py", line 58, in builder
    build(config, live_server=live_server, dirty=dirty)
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/mkdocs/commands/build.py", line 292, in build
    _populate_page(file.page, config, files, dirty)
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/mkdocs/commands/build.py", line 174, in _populate_page
    page.render(config, files)
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/mkdocs/structure/pages.py", line 171, in render
    md = markdown.Markdown(
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/markdown/core.py", line 96, in __init__
    self.registerExtensions(extensions=kwargs.get('extensions', []),
  File "/Users/andy/Devel/code-vault2/vaultenv/lib/python3.9/site-packages/markdown/core.py", line 125, in registerExtensions
    ext.extendMarkdown(self)
TypeError: extendMarkdown() missing 1 required positional argument: 'md_globals'
@neatc0der
Copy link
Member

neatc0der commented Jul 18, 2022

I can reproduce the error It's an issue concerning Markdown version 3.4+

@neatc0der neatc0der self-assigned this Jul 18, 2022
@neatc0der neatc0der added the bug Something isn't working label Jul 18, 2022
@neatc0der
Copy link
Member

#40 solves the issue. v2.2.2 released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants