-
Notifications
You must be signed in to change notification settings - Fork 90
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
Ignore unknown lexers #116
Comments
Seems pretty reasonable to me. |
This behavior is due to We could fix this in Personally I think we should just fail here: the user is asking us to highlight with a specific language, and we can't. |
In previous versions, this example would error, but now emits a code block. If the end user includes a syntax that Pygments does not implement yet, or makes a mistake, the resulting HTML will be valid and succeed, but may not be as pretty as other code blocks. Resolves: pypa#116 Refs: pypa#168 Signed-off-by: Mike Fiedler <miketheman@gmail.com>
In previous versions, this example would error, but now emits a code block. If the end user includes a syntax that Pygments does not implement yet, or makes a mistake, the resulting HTML will be valid and succeed, but may not be as pretty as other code blocks. Resolves: pypa#116 Refs: pypa#168 Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Given a lexer that Pygments doesn't know about (a common one being TOML), it'd be great if
readme_renderer
/ PyPI simply rendered the block as fixed-width text without highlighting, and didn't complain / break.GitHub and other places that reST might be being rendered (like within Sphinx) often have additional language support, and so I often will use some additional languages, even though they might not fully render with highlighting in other places.
The text was updated successfully, but these errors were encountered: