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 to a default language if unknown #52

Open
kmbauer opened this issue Feb 23, 2021 · 0 comments
Open

Fallback to a default language if unknown #52

kmbauer opened this issue Feb 23, 2021 · 0 comments

Comments

@kmbauer
Copy link

kmbauer commented Feb 23, 2021

Allow the developer to configure a default language to fallback to if not in the supported list.

For example lets assume the markdown

` ` `term
class test{
    System.out.println("Hello world");
}
` ` `

And I configure a fallback language with something like...

.use(shiki, {fallbackLanguage: 'java')

would result in

<pre><code class="language-java">
class test{
    System.out.println("Hello world");
}
</code></pre>
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