-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
SuperFences and CodeHilite problem #1604
Comments
I'd like to clarify, SuperFences isn't incompatible with CodeHilite, it just doesn't use or care what you set for CodeHilite. They are separate highlighters. Now SuperFences and Python Markdown's You can see that if I do this in my documents, that it will work just fine:
The colors are different in highlighting as my custom CSS does not bother to apply to CodeHilite's default class. Anyways, with that said, if you are using SuperFences, I'm not sure why you'd want to mix the indented highlight style with language headers and the fenced style with language headers. I'd recommend that people pick their favorite (mine being SuperFences). If we aren't already, it may make sense to make a note of this if we haven't already. |
Thank you. In my case SuperFences ignored CodeHilite's linenums option.
Good! |
I checked that...
Description
I have a Mkdocs project with CodeHilite and SuperFences.
I notice that CodeHilite doesn't show anymore the line numbers (it is true globally).
So I remove one by one the extensions and plugins and discover that SuperFences somehow disables the line numbers.
See facelessuser/pymdown-extensions#893
A solution: an alert in documentation like "SuperFences is incompatible with CodeHilite; use Highlight instead".
PS: I made a test with SuperFences and Highlight and worked as expected.
Actual
.yml
:Expected behavior
In this case an alert in documentation.
Actual behavior
No alert.
Steps to reproduce the bug
```
Package versions
Python 3.7.6
mkdocs, version 1.1
Version: 5.1.0
Project configuration
System information
The text was updated successfully, but these errors were encountered: