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

feat: defaults to plaintext / map languages to be rendered as another #17

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

rjborba
Copy link
Collaborator

@rjborba rjborba commented Jul 27, 2024

For some reasons there are some languages that should be rendered as another. HMTL is one of these examples. It should be rendered as XML. I'm unsure about the reason. There probable be another languages that we should take the same approach, but I do not know them yet.

For now I generated a map for these languages.

Also, if the language is unknown, we're highlighting them as plaintext. This way be can scape tokens like:
<h1> which would be rendered as a h1 tag instead of a code.

I've also added the broken cases to the storybook so we can keep an eye on it :)

Copy link

vercel bot commented Jul 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
orama-ui-components-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 27, 2024 2:30am

@rjborba rjborba merged commit b25f649 into main Jul 29, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants