-
Notifications
You must be signed in to change notification settings - Fork 5
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
Displaying markdown code instead of mindmap / Missing requirement #17
Comments
Please provide your mkdocs.yml |
@neatc0der, here are the relevant changes to my Just in case: My markdown files (including @@ -143,6 +144,10 @@ plugins:
- git-revision-date-localized
+ - markmap:
+ base_path: docs
+ encoding: utf-8
+ file_extension: .mm.md
- minify:
minify_html: true
minify_js: true @@ -168,6 +173,7 @@ markdown_extensions:
permalink: true
- markdown.extensions.smarty:
smart_quotes: false
+ - markmap
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem: |
The api was simplified with version If that doesn't help I'll need more insight into your project. |
Another thought on this: Looking at your plugins there may be some plugin combinations that are not getting along too well. |
Thank you a lot for your help! Unfortunately, I still cannot see what might be wrong. What I didDeleting As far as I understand the readme, we would expect a "beautiful mindmap", right? As I could find no screenshots, I am not sure if I misunderstood the purpose of this plugin. I am looking for a way to integrate markdown mindmaps in my docs. I still hope that I am just missing something in my Please find below all steps in detail for easy testing. tree
mkdocs.yml
requirements.txt
Screenshots
Create new project
Use material design
Install markmap plugin
Create a mindmapGo to https://markmap.js.org/repl/ and save the markdown sample (see gist) in Serve my site
|
Ok, so here's what I did: conda create -n markmap-test python=3.8
conda activate markmap-test
pip install mkdocs==1.1.2 mkdocs-markmap==2.0.1 mkdocs-material==7.1.1 urllib3
mkdocs new foobar
cd foobar
cp docs/index.md docs/mindmap.mm.md
echo "{!mindmap.mm.md!}" >> docs/index.md
echo "plugins:\n - markmap" >> mkdocs.yml
mkdocs serve -sv And it works for me... Are you sure you've activated javascript in your browser? The mind map is not static content. If you are absolutely sure you followed the above steps, please provide your mkdocs folder including the built sites. |
I still get back a fenced code block instead of a mindmap.
Could you please send me a screenshot, so that I know what it should look like? Thanks a lot! |
Ok, since you didn't provide the requested data, I'm sharing my test environment. Please find the attached zip file in order to:
Also, to answer your question: The result should simply look like an embedded markmap graph. |
Wow, great! As expected I am having a dependency issue. Sorry for not having provided the |
Please let me know, which dependency was missing, so I can add it for production requirements. I'll prepare a bug fix release for that. |
I will have a look at it tomorrow and let you know. 👍🏼 So far the only thing I can say is that
|
Well, that's odd... Let me know when you find something. #18 is prepared and ready to go, once we have solved the issue. |
The only thing I can say so far is that the error occurs when using one of these two markdown extensions (or even both, as in my case 😄): |
Okay, MagicLink is innocent. The issue might rather be a SuperFences bug. mkdocs.yml
pip show pymdown-extensions
mkdocs build
|
Hm, I'm afraid this is out of this project's scope... Maybe there's a workaround. Try adding |
Thank you, I just commented out the extension! I am happy we at least found out what was causing the issue. Thx for your help and keep up the good work! 👌 |
Please see #19 |
Hi, thank you for this nice plugin! Unfortunately, the extension is not creating a mindmap from my markmap file. The file has been tested with https://markmap.js.org/repl/ and vscode.
How to reproduce
I followed the docs, and
mkdocs serve -s
gives no error (only several deprecation warnings for the 'md_globals' parameter, seemarkdown/core.py:124
).Calling the file from another markdown file via
{!mindmap.mm.md!}
displays the raw file content in a code box. Includingmindmap.mm.md
to thenav
section ofmkdocs.yml
generates a normal html site with all headings, links, and unordered lists - but no mindmap.Am I missing a dependency, or is this maybe a dependency issue? As configuration is pretty simple (thanks for this!), I cannot see where I might have committed an error.
Installed versions
The text was updated successfully, but these errors were encountered: