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

Language alias is case-sensitive #440

Open
lacymorrow opened this issue Jul 11, 2018 · 0 comments
Open

Language alias is case-sensitive #440

lacymorrow opened this issue Jul 11, 2018 · 0 comments

Comments

@lacymorrow
Copy link

lacymorrow commented Jul 11, 2018

The aliases.txt contains aliases in the following structure. They are case insensitive

I'm trying to detect languages and display them about the code snippets. This works properly WP blog authors use the underlined language names (js, javascript python, php) however when code blocks are prefaced with capital language names like JavaScript, Crayon is unable to detect the language and assigns it the generic default language.

To clarify, code blocks beginning with <pre class="lang:javascript decode:true"> are correctly parsed as js, while blocks with <pre class="lang:JavaScript decode:true"> are not.

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