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

Fallback option to infer code languages from elements #4

Open
calvellido opened this issue Mar 13, 2020 · 0 comments
Open

Fallback option to infer code languages from elements #4

calvellido opened this issue Mar 13, 2020 · 0 comments

Comments

@calvellido
Copy link
Collaborator

Given the way this web component will be used, where highlighters will be playing a role, and they add proper classes or attributes as part of their rendering, we could add an option where the code snippet language could be inferred from the element is none is set:

<div class="language-groovy highlighter-rouge">
(...)
</div>

<div class="language-kotlin highlighter-rouge">
(...)
</div>
@calvellido calvellido changed the title Add fallback option to infer code languages from elements Fallback option to infer code languages from elements Mar 13, 2020
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