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

Add an option to disable auto language detection #41

Closed
Phryxia opened this issue Sep 12, 2022 · 2 comments
Closed

Add an option to disable auto language detection #41

Phryxia opened this issue Sep 12, 2022 · 2 comments

Comments

@Phryxia
Copy link
Contributor

Phryxia commented Sep 12, 2022

Before the discussion, I'd like to thank for this great library! The proposal is very simple. Can we add an option to disable the language auto detection?

The usage for this is to express some errors or terminal related things with code fences. For example, if I render a block of code with language unspecified, then it looks like:

image

One can be modified like this. This won't break current behavior. If language is not specified with no auto detection, there is no reason to pass this extension. That's the reason I edited the left regexp. Since I misunderstood something, I deleted previous posted code.

I'd like to listen your feedback before I do that.

(+ I'm work in progress for this)

@IonicaBizau
Copy link
Member

This is a great idea, @Phryxia! Would you like to create a PR request for this?

@Phryxia
Copy link
Contributor Author

Phryxia commented Sep 17, 2022

@IonicaBizau
Thank you! I'll work for this right away.

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

2 participants