-
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
Does not work with pymdownx.superfences #19
Comments
tl;dr: I'll need a (minimalistic) sample environment from you that reproduces the error reliably. When an issue is raised twice, that's not a great sign for quality of the project. So, I tried to be thorough and set up a sample environment with some gimmickry to force the error. But, I was unsuccessful. The page looks just fine after doing this:
site_name: Test
nav:
- Home: index.md
- ...
plugins:
- markmap:
base_path: mindmaps
extensions:
- pymdownx.arithmatex
- pymdownx.betterem(smart_enable=all)
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji:
emoji_generator: !!python/name:pymdownx.emoji.to_svg
- pymdownx.highlight(use_pygments=false)
- pymdownx.inlinehilite
- pymdownx.magiclink
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.superfences
- pymdownx.tasklist(custom_checkbox=true)
- pymdownx.tilde
extra_javascript:
- 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'
# Home
```markmap
# Root
## Branch 1
## Branch 2
```
```{.py3 hl_lines="1 3" linenums="2"}
"""Some file."""
import foo.bar
import boo.baz
import foo.bar.baz
```
$$
\frac{n!}{k!(n-k)!} = \binom{n}{k}
$$
{!mindmap.mm.md!}
|
Example $ pip install mkdocs-material
$ pip install pymdown-extensions==8.1.1 Clone the repository: https://github.com/ErliSoares/mkdocs-markmap-error When comments the line works: https://github.com/ErliSoares/mkdocs-markmap-error/blob/9ab445aa2a2c9e1b25022cd18ac83f506107c323/mkdocs.yml#L11 |
In your example change extensions by markdown_extensions |
Thanks for the remark to my incorrect configuration as well as your error repo. I'm sorry, but there's no error for me. So, let's dive deeper. Please provide the output to these commands:
|
Thanks for looking at the possible problem, I reinstalled and another machine from scratch.
|
Ok, so I ran this on my system (macOS 11.5.2): git clone [email protected]:ErliSoares/mkdocs-markmap-error.git
cd mkdocs-markmap-error
conda create --name markmap-error python=3.9.6
conda activate markmap-error
vim requirements.txt # I copied your pip freeze output
pip install -r requirements.txt
mkdocs build There were no errors and the result looks just fine. Conda does not yet provide python |
I too had similar issues at least with the latest mkdocs-material mkdocs-material-7.2.6 I am trying to share this experience thinking that it may help to reproduce the issue. |
Sorry if I'm talking nonsense, I have no knowledge of python and markdown plugin. From what I've managed to interplete from the code below, mkdocs-markmap fetches the Without
|
Thanks for pointing this out to me. In fact, my previous comment was premature. The issue is reproducible for me, my bad. I'll look into this and get back to you. |
Ok, so for once I'll acknowledge this as a bug, but from my perspective this is a mess produced by
What I did was to support the altered structure in step 2. Also, step 1 is automated in the code. Thus, users will not be required to add Please review #23 and accept if reliable. It works on my machine 😉 |
You are amazing, it worked perfectly, a great solution, thank you very much. |
|
First of all thank you very much for the plugin, very useful.
Is there any possibility to tweak it to work with pymdownx.superfences? pymdownx.superfences for me is very important, thank you very much.
I found an issue, but it seems they didn't come up with a solution #17.
The text was updated successfully, but these errors were encountered: