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

Use fallback lexer when no language is specified #22

Open
helfper opened this issue Aug 21, 2021 · 0 comments
Open

Use fallback lexer when no language is specified #22

helfper opened this issue Aug 21, 2021 · 0 comments

Comments

@helfper
Copy link

helfper commented Aug 21, 2021

(Initially posted in gohugoio/hugo#8913)

Currently, when using code fences without language specified (and GuessLanguage is disabled), no CSS class or style is added to pre/code. I think it would be more useful to use the fallback lexer instead -- like it happens when GuessLanguage is used and the language isn't identified -- as it would use a consistent fore/background color without special CSS handling by the user.

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