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

Option to syntax highlight only fenced code blocks as code blocks; properly highlight admonitions / content tabs #565

Open
skwde opened this issue Jan 11, 2022 · 0 comments

Comments

@skwde
Copy link

skwde commented Jan 11, 2022

This would greatly improve the syntax highlighting and fix numerous highlighting issues, e.g. in python markdown.

It would e.g. allow to properly highlight admonitions and content tabs (as they e.g. appear in mkdocs material)
Following a example admonition which gets highlighted incorrectly.

!!! note "Some example admonition"
    The first line in an admonition is highlighted correctly because code blocks are surrounded by black lines.

    This also means that everything after the first blank line is identified as a codeblock...

    ```sh
    touch file
    ```

    No matter what we do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant