Skip to content

Error: Unknown language: g is not registered #1013

Answered by wooorm
mohamadresaaa asked this question in Q&A
Discussion options

You must be logged in to vote

That error is thrown when something like the following is written:

```g
asdasd
```

Typically, if a plugin throws an error, you’ll find more information in the readme of that plugin.
In this case, you can reach its API docs: https://github.com/rehypejs/rehype-highlight#unifieduserehypehighlight-options.
Specifically, when reading that, you’ll find an option that you can use to not throw an error for missing languages: https://github.com/rehypejs/rehype-highlight#optionsignoremissing.

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@mohamadresaaa
Comment options

Comment options

You must be logged in to vote
2 replies
@mohamadresaaa
Comment options

@ChristianMurphy
Comment options

Answer selected by wooorm
Comment options

You must be logged in to vote
5 replies
@wooorm
Comment options

@abdulmajeed33
Comment options

@abdulmajeed33
Comment options

@wooorm
Comment options

@abdulmajeed33
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants